Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I tell what button was clicked in an event?
Message
 
 
To
25/09/1999 21:40:59
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00269019
Message ID:
00269021
Views:
22
Peter,

On the Cancel button set it's Cancel property = .t. and then at the top of your valid code:

if ( lastkey() = 27 )
return .t.
endif

>I need to know what was clicked (or typed) in an event so that when a client hits the CANCEL button on a form, my standard input validation routines can be skipped and the CANCEL processed.
>
>Also... if I just skip that part of the valid code with a if then or something, will the code for the CANCEL fire immediately following?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform