Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning to a control
Message
From
24/07/1999 02:07:20
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00245106
Message ID:
00245678
Views:
14
>>>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
>
>You are welcome.
>
>I just noticed you have been a member for years, but this is the first question you have asked. Incredible.


I have been ramping up on FoxPro for quite a while, and would like to work on it full time, however I have a day job which cuts into my time, and slows down the learning curve. I usually search and read the postings which give a lot of answers.
I added the new property to a form in a formset, and it went onto the formset instead. Also I am getting the error message, "Unknown member Lastcontrol..." The new property shows up and is set to .F., but I must not be setting it up right. I need another pointer if possible.

Thanks

Porter Bailey
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform