DeVon Fowler wrote:
I'm trying to change the text repeatedly for various
controls including pushButtonCtl and popupTriggerCtl. There were techniques for verifying that the text
returned from CtlGetLabel() was the initial default
value.
This now generates warning or error messages in Palm
OS5:
freeTxtP = (char *)ctlP + sizeof(ControlType);
oldTxtP = (char *)CtlGetLabel(ctlP);
CtlSetLabel(ctlP, txtP);
if(oldTxtP != freeTxtP)
why not just do...
if ( StrCompare(oldTxtP,txtP) != 0 ) { ... };
?

if you're trying to check if the label was changed, even if to the same label, couldn't you do that more simply by setting a flag true each time you set a new label?

Matt


--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/


Reply via email to