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
26/09/1999 10:24:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00269019
Message ID:
00269137
Views:
22
Mike,

Two problems with that code. It won't work if the user hits the Escape key. And it may accidently trigger if the user even just has the mouse sitting over the top of the cancel control without clicking it.

>Hi Peter,
>
>>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.
>
>In addition to the last key way, something like:
>
>type('sys(1270).Cancel') = 'L' and sys(1270).Cancel
>
>>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?
>
>Yep, AKAIK
df (was a 10 time MVP)

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

Click here to load this message in the networking platform