FOR EACH loObj IN oContainer.OBJECTS
IF oObj.Name = 'myobj' THEN
oObj.Enabled = ...
endif
...
ENDFOR
Agnes
>Hi
>
>Using newobject I am creating controls in a container on a form.
>
>I want to enable and disable the controls and I can do that by enabling the container. But that doesn't highlight the controls as disabled.
>Is there a way of finding what controls are in the container and disabling them individually .
>Or do I have to store the control names as I create them and then use that.
>
>Thanks
>
>Nick Mason
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]