Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus Method
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00243563
Message ID:
00243612
Views:
28
>Does anyone know what is equivalent to the SETFOCUS command? In my valid method, it's not allowing me to thisform.fieldtxt.setfocus. It says that it's not allowed in Valid event. Do you have another suggestion of what to use? I tried got focus but that doesn't work either!
>
>All I want to do is return the cursor to the field where the error happened.

Or return 0, if you don't want the message that sometimes appears with return .F.

Or, if you want to redirect focus, use Lostfocus instead. That allows setfocus. In Lostfocus, put

Nodefault
Thisform.somecontrol.Setfocus
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform