Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private Datasession
Message
 
À
12/12/2001 07:35:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00593168
Message ID:
00593201
Vues:
30
>I have a form with it datasession set to private.
>How can I check the recno() from a table outside the form?

Jimmy,

You can do what Alexandre suggested ro you can add a custom method to your form that returns the infromation you want. The method's code will be running in the form's data session. For example if you wanted to know the curretn recno() for the MyTable alias you could;

In the form designer;
1. Select Form menu
2. Choose New Method
3. Give the new method a name (GetRecno or whatever)

Goto the emthod editor for the form and select your new method and put code like this;
* MyForm's GetRecno method
LParameters tcAlias
RETURN RECNO(tcAlias)
Now when you need the recno from outside the form;
lnRecno = FormObjectName.GetRecno("TheAliasYouWant")
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform