Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid Method and Cancel Button
Message
 
To
20/07/1999 14:58:15
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00243647
Message ID:
00243777
Views:
18
John and Others,

Here's an easier way to do this.

1) Set the Cancel property of the Cancel button to .T.
2) At the beginning of every Valid event put this code;
IF LASTKEY() = 27
   RETURN .T.
ENDIF
The cancel property makes clicking the cancel button the same as pressing Escape. This has the added feature of making pressing Escape the same as clikcing the cancle button (that is the cancel button's click evnet will fire when pressing esacpe).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform