Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using lostfocus to validate?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00363607
Message ID:
00363661
Views:
23
Paul,

Set the Cancel property of your Cancel button to .T. This cause the click of the cancel button to be equivalent of pressing the escape key. Now in any Valid event you can;
* Some Valid event
IF LASTKEY() = 27 && Escape
   KEYBOARD "{CTRL+A}"  && Change lastkey()
   RETURN .T.
ENDIF
* The rest of the Validation code goes here
Previous
Reply
Map
View

Click here to load this message in the networking platform