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