Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Test for which button was last clicked
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01268745
Message ID:
01268749
Views:
16
>How can you test which button on the form was last clicked or last had the focus? I have several buttons that run the same method and I need to know which button called the method.

If your buttons are all based on some custom class, when in button's when event you can save its name (or object) in the custom form's property.

Another idea would be to bind button's click in form's Init method to some custom form's method using Bindevents(). Then you would be able to find the button that clicked using aevents()
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform