Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private Datasession
Message
From
13/12/2001 06:36:57
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00593168
Message ID:
00593779
Views:
19
>>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")
>
>
If put some code in the refresh event that assigns a value to a prop.
thisform.recno=recno().
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform