>>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