Nohting's wrong with it; you just have to have a global for the text it
points to. CtlSetLabel() doesn't COPY the string. All it does is point
ctl.label to the string you pass it. SO, if you ever redraw the form and
your string is gone the label will be garbage.
Alan Pinstein
Synergy Solutions, Inc.
http://www.synsolutions.com
1-800-210-5293
>Kevin O'Keefe wrote:
>>
>> It's better to have different buttons at that spot in the resource and then
>> just enable the
>> one you need for a particular situation. The problems with replacing the
>> text on the button
>> just aren't worth it.
>
>What's wrong with just using CtlSetLabel? I've used it to change text
>on a button without any obvious problems. Are there some subtle issues
>I'm not aware of?
>--Mark