Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Test for which button was last clicked
Message
 
 
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:
01268749
Vues:
17
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform