Take a look at SetAll() This will make life easier :)
Ron
>Hi There!
>
>I am trying to set various properties on all controls.
>So from the top-level parent container I have something like:
>
>LOCAL lnIndex
>FOR lnIndex=1 TO This.ControlCount
> This.Controls(lnIndex).Property = someValue
>ENDFOR
>
>
>But some controls are containers that contain other little
>containers with little oblects in them.
>
>Getting into hierarchical referencing implies having to
>chech first for containers and non-containers - more code!!
>
>Isn't there a more straight forward (kind of flat) way of doing this?
>
>Thanks you.
>
>Mathias