Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning to a control
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00245106
Message ID:
00245210
Views:
17
>During the use of a formset I would like to be able to return to the same control the user was at on form1 when exiting form2 and going back to form1. Without saving the control name from form1 to a public variable, I cannot see how to get VFP to return to the same control. I am wondering if there is a good way to do this, or if I should just return to a particular specified control no matter where the user was when he left form1. I would prefer not to create a public variable.
>
>Thanks in advance.
>
>Porter Bailey

2 ways...

Form2 can be modal which would automatically return to form1 as is.

Make a custom property in form1 to save the name of the current control then set focus back to that control when form1 is activated.

HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform