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 16:55:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00269019
Message ID:
00269145
Views:
23
Mike,

SYS(1270) is only semi-reliable under any circumstances. Even if the user had used the mouse to click the button the mouse can have moved off of the object between the time the event occurred and when the sys(1270) object is checked. If you really have to what control was clicked you'd have to have code that tracked 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?
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