Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid Event
Message
From
15/01/2003 06:30:21
 
 
To
15/01/2003 00:37:04
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00741764
Message ID:
00741817
Views:
19
I want that when user press cancel button this valid event shouldn't fire.

The easiest thing to do is to set the Cancel property of the cancel button to true. This means that pressing escape key and clicking the button are functionally equivalent. Then in your valid, you can put code like this:
IF LASTKEY() = 27
  *** Cancel button was clicked
  *** skip the validation
  *** and clear the escape key
  KEYBOARD '{MOUSE}'
ELSE
  *** Your validation goes here
ENDIF
Previous
Reply
Map
View

Click here to load this message in the networking platform