Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RunAll as SetAll but for methods
Message
De
05/10/2006 21:52:36
 
 
À
05/10/2006 12:49:33
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01159583
Message ID:
01159917
Vues:
19
>>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.
>>
>>So, I've written a RunAll() method for my form. Here's the code. I'd like this to be a public domain sort of thing with anyone modifying the code to make it more robust. Any comments?
>
>What if your object has the method AND has members with that method? Since the first case will fire, it will never recurse through its members.
>
>You may look up my recurse class (click on my name in message headers, look up contributions) - it's fairly easy to do something like this with it.
>

Thanks for your comments, you've certainly spotted a weakness in my scheme.
I'll check out your recurse class.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform