>>
>> > The character pointer you pass using FldSEtTextPtr needs to be a
> pointer,
>> > not a constant text string.
>>
>> This is not true. A constant text string is a pointer, and would work just
>> fine in this situation.
>>
> Constant text string will work IFF the new string is the same size or
> smaller than the orginal. If your constant string is not available for the
> life of the field, the field may not display the proper data.
>
A string constant (like "abc") is constant and exists for the lifetime of
the application. Thus, passing a string constant is just find for
FldSetTextPtr. It's guaranteed to exist for the life of the field (unlike,
let's say a character array local to a function).
In addition, the length of the string is irrelevant to FldSetTextPtr. It
gets a 4-byte pointer and keeps hold of it (unlike, let's say FrmCopyLabel,
which copies the passed-in string).
Neil
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/