Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Test for which button was last clicked
Message
From
13/11/2007 21:23:50
 
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:
01268835
Views:
9
>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.

I think Sergey's way is the cleanest. If this is just for some Q'nD fix you might consider walking up the stack of calling programs - either with AStackInfo() or sys(16, -1), as it must still be on the stack if the method you are talking about was called by it<g>.

HTH

thomas
Previous
Reply
Map
View

Click here to load this message in the networking platform