General information
Category:
Forms & Form designer
Title:
How to acces ALL controls on a form
I have a form ,which at rutime, I want to change the caption of each control, based on a parameter passed to the form.
I am trying to do this in the INIT of the form with the following:
for i = 1 to controlcount
thisform.CONTROLS(lnFor).caption = somevalue
ENDFOR
Now this works fine for anything other than Contained controls. i.e. if I have a Pageframe, it does not give me access to each of the controls within the pageframe.
Is there any way of accessing ALL controls on a form( .i.e. going to lowest level) ?
Regards,
Gerard
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only