>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;
LParameters tcAlias
RETURN RECNO(tcAlias)
Now when you need the recno from outside the form;
lnRecno = FormObjectName.GetRecno("TheAliasYouWant")