Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setall for label
Message
 
 
À
09/08/2007 17:11:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01247069
Message ID:
01247224
Vues:
25
>>I have about 20 labels on a form for credits and thay are aptly named
>>LBLCREDIT1,LBLCREDIT2,......LBLCREDIT20 and all the captions are the same, the word "credit". I want to use setall to chg them to another caption, "AMT" for example. I do not want to mess with various other labels on this form however.
>
>Tim:
>
>Any chance you can sub-class the labels into something like "clsLblCredAmt"?
>
>That way you could simply
>Thisform.setall("caption","AMT","clsLblCredAmt")
>
>And avoid any problems with forcing a naming convention (not necessarily a bad idea but you could forget or mistype a name), loop counters, etc.

Exactly. It would be much better to have a special class.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform