Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Who have the control????
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00658310
Message ID:
00658341
Views:
21
This message has been marked as the solution to the initial question of the thread.
>I have some textboxes, that do some search in Lostfocus... If can´t found a code, for example, I display a message, but control returns to Text1... How can I return the control to the textbox that cause the error? I mean, can I set the Focus to an especific object (Which is previously identified via var)?
>
>Thanks in Advance!

You can conditionally SetFocus() to any other object from the LostFocus() event.
Just put something like
IF [mycondition]
thisform.somecontrol.SetFocus()
ENDIF
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform