Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid Method and Cancel Button
Message
From
20/07/1999 15:51:01
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00243647
Message ID:
00243782
Views:
21
Beautiful. Follows the KISS philosophy as well. My solution was based on monkeying around with MROW and MCOL one day to see if they still worked :-)


>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).
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform