Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cycling through controls in a form
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00666032
Message ID:
00666042
Views:
32
This message has been marked as the solution to the initial question of the thread.
Hi, Enmanuel!

Every container object (form, page, grid etc) has a collection, which you can iterate using
FOR EACH loObject IN This.Controls
   ...do something wiht loObject
ENDFOR
Now you need a mechanism which can find out that loObject is a container object too and call the iterator function recursivly!

BTW: Be aware of different names of these collections in different containers ("Controls" in a form, "Pages" in pageframe, "Buttons" in a option group)!
May be you can also use the "Objects" collection, but I'm not familiar with this!
SeBaFlu
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform