At 23:37 2002-10-3 +0100, you wrote: >I wish to change the text displayed by a label with a shorter string. >However doing this with CtlSetLabel leaves the end of the previous text >on the form - e.g. replacing "This length string" with "This string" > >What is the best way to update the text displayed by a label so that the >previous text is completely removed?
Labels controls are modified using FrmCopyLabel, not CtlSetLabel. CtlSetLabel exists to alter the labels of Controls -- buttons, checkboxes, etc. A label in a form is a different kind of form object, and your code is only working by unhappy coincidence. -- Ben Combee <[EMAIL PROTECTED]> CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
