Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a record from one form to another
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00037608
Message ID:
00037611
Views:
29
>I have a form with a big grid. When you click on the grid, the text1.click has a DO FORM form2 WITH keyvalue. The form2.Init has a LOCATE FOR keyfield = keyvalue. That way, you can select a record off a grid and then see a form with its complete information. The problem is that when form2 loads, it selects the record with keyvalue, and then loses it, returning to the top of the table. But, and this is the aggravating part: if I am stepping through with the debugger, it doesn't happen. Anything that stops the flow of the program as the form is loading and displaying removes the error. Using a .3 second throttle, I still get the error. It seems to go to the top after most, or all, the inits, when the form is being displayed. I use the .navrefresh method from the txtbtns class of wizstyle.vcx. The error seems to happen after this method is executed. Any suggestions?

If you use modal form, you shouldn't get this problem. If form is modeless try to use private data session.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform