Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing All contained containers and All their control
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00227313
Message ID:
00227320
Views:
25
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
Ronald L. Thorp
http://www.Fox-Pros.com
Fox-Pros, Inc.
Office 407-498-0100
Previous
Reply
Map
View

Click here to load this message in the networking platform