Udi Kobi wrote:
Hi,
I use this code to set a field's value:
field = (FieldType *)GetObjectPtr(MonthField);
StrCopy(str, "July");
FldInsert(field, str, StrLen(str));
Mark (highlight) the content of the field before. You will overwrite the
content of the field as I understand you.
And this code to read:
field = (FieldType *)GetObjectPtr(YearField);
str = FldGetTextPtr(field);
val = StrAToI(str);
Did you checked str? FldGetTextPtr can return NULL if the field is empty.
Regards
Henk
--
-------------------------------------------------------------------------
Henk Jonas [EMAIL PROTECTED]
Palm OS ® certified developer
Please contact me, if you need an off-side contract worker.
-------------------------------------------------------------------------
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/