Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loop objects in a form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00915771
Message ID:
00915772
Vues:
10
This message has been marked as the solution to the initial question of the thread.
>Hi Everybody,
>
>Is there any way that I can loop through all the objects in a form? I would like to check their properties.
>
>Thank you,
>Ali

Code like this should work:
FOR EACH loControl IN ThisForm.Controls
    * loControl now holds a reference to a single control.
ENDFOR
This won't handle nested controls, though. You can recurse through the returned controls if necessary.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform