One possibility, make sure the memory pointed to by 'totalP' will out-live
the field since you're using FldSetTextPtr.  (you may be better off using
handles instead of pointers but that's just my opinions) If the scope of
'totalP' is not equal to or greater than the field, the memory it points to
could be lost.

----- Original Message -----
From: "Ai Lee Tang" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 6:05 AM
Subject: modifying text field


> hi all,
>
> I got problem to get the text of a field after modifed that field.
>
> i called few commands as below to update a field.
>
>         FldSetTextPtr(totalFld, totalP);
> FldRecalculateField(totalFld, true);
> FldDrawField(totalFld);
>
>
> After updating, when i called FldGetTextPtr(totalFld, totalP), i could not
> get the text of the field(totalFld).
>
> I do not know where i did wrongly. I need someone to enlighten me.
>
>
> Many Thanks,
>
> ailee
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>



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

Reply via email to