Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Evaluating commandbutton on a form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00056992
Message ID:
00057101
Vues:
36
>>>>Is there a way to determine which cmd button was selected on a form?
>>>
>>>=messagebox(thisform.activecontrol.name)
>>
>>I want to determine which cmd button was LAST selected.
>
>Timothy, 'selected' for cmdButton means that click or gotfocus (depending what you mean here) event was fired. So, add some code in these event to reset some form property to value reflecting cmd number.


Tim:

Try using a commandgroup and referencing the 'Value' property.
Example: If you have a group with 4 buttons and 'Click' the third button, CommandGroup1.Value = 3

Dan
Dan
St. Petersburg, FL

"I started out with nothing and I still have most of it left"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform