Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Test for which button was last clicked
Message
De
13/11/2007 21:23:50
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01268745
Message ID:
01268835
Vues:
10
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform