Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loop thru all controls without recursive
Message
From
11/01/2004 11:22:51
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
10/01/2004 09:40:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00865729
Message ID:
00865833
Views:
16
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform