Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I tell what button was clicked in an event?
Message
From
26/09/1999 16:55:06
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00269019
Message ID:
00269143
Views:
25
Hi David,

>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.

Yeah, But the last key would only work in the Cancel example (yeah, I know thats what he wanted). To be completely true as far as: "How can I tell what button was clicked in an event?" You would have to check either the sys(1270) or the lasykey detecting Alt combintation, or simply the activecontrol, but in ,say the Valid, the ActiveControl hasn't been updated yet, right?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform