Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RunAll as SetAll but for methods
Message
De
05/10/2006 21:54:13
 
 
À
05/10/2006 08:34:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01159583
Message ID:
01159918
Vues:
15
>Hi Kenneth.
>
>>While SetAll() can be used to change all properties, I sometimes want to run a method on all of my edit controls in a form. These controls can be in containers, grids or pages of a page frame so I only want to run the method for those objects having it - but I want to drill down into containers (that don't have the method.
>
>The way I've implemented this is to create a property in all my base classes with an Assign method. Then, you can use Thisform.SetAll('PropertyName', Value) to fire the Assign method for all objects.
>
>Doug


I should have known you'd come up with a clever way of doing this.
Thanks,
Ken
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform