Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to acces ALL controls on a form
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
How to acces ALL controls on a form
Divers
Thread ID:
00246080
Message ID:
00246080
Vues:
52
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform