Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SETALL does not disable ComboBox class
Message
De
04/09/1999 12:12:12
 
 
À
04/09/1999 10:57:01
Dennis Schuette
Customized Business Services, Llc
Yuma, Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00261380
Message ID:
00261521
Vues:
22
>>
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform