Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining number of objects in a form
Message
De
22/11/1999 19:30:25
Jorge Haro
Independent Consultant
Juarez, Mexique
 
 
À
22/11/1999 19:15:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00294135
Message ID:
00294148
Vues:
21
Yikes!, overlooked the obvious one :), I could swear I looked for a property like that, oh well, thanks, I'm using Mike's suggestion now but controlcount could come in handy later. It's a form class that's supposed to loop through a specific type of control. I could need recursion if I add a pageframe or something, but for now I doubt it, thanks again.

>You can use the ControlCount property to get what you want with one caveat: ControlCount doesn't ocunt the controls inside other containers. To get a complete count, you'll have to use a recursive method that can deal with nested containers, and do the count yourself. Check out message #257688 for an example of how to write a routine like this. The example is a RunAll method, but you could easily modify it to just count controls.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform