Doesn't your text pointer need to be initialized with text as a character
array:
char text[10];
??
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of James Tu
Sent: Tuesday, November 14, 2000 1:58 PM
To: Palm Developer Forum
Subject: Update field's contents
I'm new to Palm dev...and I'm simply tring to update a field's contents
with another text pointer.
But this is not updating the field of the form. Can someone point out
why? It's probably something really simple...
debugfldIndex = FrmGetObjectIndex(frmP, MainDebugFieldField);
debugfldP = FrmGetObjectPtr(frmP, debugfldIndex);
//Set the text of the debug field to the text of the the serial text
received
FldSetTextPtr (debugfldP, text); //text is a char *
//Update the field to show the new text
FldDrawField (debugfldP);
this field is a non-editable field...that's why I'm using FldSetTextPtr
as oppose to FldSetTextHandle...following the recommendation of the
documentation.
Thanks!
-James
--
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/