Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function keys and validations
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00665069
Message ID:
00665902
Views:
23
This message has been marked as a message which has helped to the initial question of the thread.
Hi, Jim!
>IF VarType(Thisform.ActiveControl) = "O" AND PEMSTATUS(Thisform.ActiveControl,"SetFocus",5)
>   Thisform.ActiveControl.SetFocus()
>ENDIF
But have an eye on don't do this within any Valid event (or deeper in the call stack) to prevent from the error "2012 Cannot call SetFocus from within a When, Valid, RangeHigh or RangeLow event"!
SeBaFlu
Previous
Reply
Map
View

Click here to load this message in the networking platform