Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GOING TO A SPECIFIC RECORD
Message
 
To
31/10/1996 13:11:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00011215
Message ID:
00011254
Views:
30
>When I open a form I want it to go to a specific record number that user specifies just before the form is opened. Any Ideas on how to do this I think that I have tried everything. Putting go to recno in the init event of the data environment of any other init event dosen't work. I can issue a browse after the goto command and the browse goes to the correct recno..Thanks fot the Help today, and All have a Happy Halloween!!!!!!!!

This is a little different from the suggestions from Steve and Arnon -- it might (or might not) be appropriate for what you are trying to do.

You might try putting the GO statement in the form's Load() method. Load() fires before the form's Init(), and this will allow you to go to the specific record you want before anything else happens. My guess is that your current approach is failing because the Init() methods for the objects on the form (text boxes, etc.) are firing before your record is selected.

Hope this helps.

Bill
Previous
Reply
Map
View

Click here to load this message in the networking platform