Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning to a control
Message
From
24/07/1999 01:12:01
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00245106
Message ID:
00245662
Views:
12
>Create a property called LastControlToHaveFocus on the form .In the lost focus event of the form save the control # or name to this property. In the gotfocus or activate event read this value and set the focus to that control. The property would be initialized with the control that would have the intial focus when the form was first started.
>
>Ain't oop just great.
>
>>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. I appreciate the help and I'll try it.

P. Bailey
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform