Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command buttons on a form
Message
From
22/09/1999 15:32:43
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00267699
Message ID:
00267742
Views:
19
Hi Timothy,

>Is there a way I can identify all command buttons on a form so as to alter a property on them?

I'd use:
for each loButton in thisform.controls
    if upper(loButton.BaseClass) = 'COMMANDBUTTON'
        loButton.Whatever...
    endif
endfor
In this case loButton refers to the actual control, so if you need its name you can do loButton.Name.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform