Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Iterating through form's controls
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00407951
Message ID:
00408065
Vues:
31
>Thanks a lot for your reply. I'll study this. In the meanwhile I decided to follow Larry's advice to add SetDefaultState method to Container class. In this method I'll put the code, as Cindy suggested:
>
>for each loControl in this.Controls
>      if left(lower(loControl.class),2)='bt' && BtCrit classes
>            loControl.SetDefaultState()
>      endif
>next
>
If you have alot of controls you may want to look at the performance. I would think FOR EACH and a TEST would be slower than explicitly calling each control using with...endwith, but it might not be noticable. Just a thought.
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform