Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SETALL does not disable ComboBox class
Message
From
04/09/1999 12:12:12
 
 
To
04/09/1999 10:57:01
Dennis Schuette
Customized Business Services, Llc
Yuma, Arizona, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00261380
Message ID:
00261521
Views:
24
>>
>>The third parameter in SetAll specifies the class, not the baseclass. If you need to set the properties for all objects depending on base class, you will haveto loop through the form.Controls collection and check for Baseclass.
>
>I had previously used the loop through the form.Controls method and replaced it with the SetAll method because it appeared cleaner code.

Nothing keeps you from putting together your own SetAllCustom method in your form and container classes that accepts a property name, a value, and a BaseClass as parameters and does the looping for you. If you find yourself writing this kind of code fairly often, I recommend writing the method once and making ut reusable.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform