Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bypass Validation when a Cancel button is pressed.
Message
From
09/11/1999 08:45:34
 
 
To
09/11/1999 08:10:59
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00288499
Message ID:
00288962
Views:
36
Yes, It does the same thing.
First time When my focus is on text box, I pressed cancel/Esc, Lastkey() value becomes 27.
But my problem is, Once the value of Lastkey() turns to 27, it will never execute the Valid event even if I click on the onother text box instead of pressing cencel or Esc. Because the very first check in Valid event is:

valid event
*first check
If Lastkey()=27
retu
endif
*second check
IF ISBLANK(THIS.VALUE)
messagebox('cannot leave blank')
endif


Thanks.
Previous
Reply
Map
View

Click here to load this message in the networking platform