Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loop thru all controls without recursive
Message
De
11/01/2004 11:22:51
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
10/01/2004 09:40:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00865729
Message ID:
00865833
Vues:
15
>Hi,
>Anyway to loop thru all controls without using recursive?
>
>Thank you

Why don't you want to use recursion?

amembers() will give you controls in a container, but only for one level. I think you will need recursion to get all members. If you need this often, you might create a user-defined function, or class, that fills an array recursively, with things like the object name, object container, and level of recursion. Your UDF would use recursion, but for any program that calls it, things would be simpler.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform