Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why cant a SetFocus be used in Valid method ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00658596
Message ID:
00678535
Views:
19
Hi Gerald,

PMFJI The valid event is normally used to do some sort of validation of the value of a control to prevent lost focus if a value that is entered if not valid. If the value is not valid (valid event returns .f.), it will force the user to enter a valid value before he can move on. You can however perform validation and pop up a message to the user from the valid event to let him know that the value is not valid and return .t. to allow it to move on to the next control. If you need to set focus to another control after the current control loses focus (whether valid or not) you can use the lost focus event and set focus to whatever control you want.

HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform