Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to acces ALL controls on a form
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
How to acces ALL controls on a form
Miscellaneous
Thread ID:
00246080
Message ID:
00246080
Views:
45
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
Map
View

Click here to load this message in the networking platform