Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Evaluating commandbutton on a form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00056992
Message ID:
00057101
Views:
30
>>>>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"
Previous
Reply
Map
View

Click here to load this message in the networking platform