>>>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.
You're right, I do have another label subclass but this form was created by a wizard.
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."