Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know what object lost the focus
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00260617
Message ID:
00261149
Views:
21
I made a class with 3 textbox and 1 combobox, I need to put 6 times this control (account1, account2, ...).

They are for getting acounting numbers and I have a command button to call a catalog, this catalog must know what control lost the focus to set the focus.

I got it know, I do it whith a form property and each Lostfous event in the 6 controls I give the control name to the property and when command button finishes, it Set the focus to the last control.

Example:

"account1.Lostfocus"
ThisForm.Lastfocus = This.Name

"command button Finishess(click event)"
cLastFocus = ThisForm.Lastfocus + '.'
ThisForm.&cLastFocus.SetFocus

And it works.

Thanks for you time Erick and David.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform