Hi,

I am resending the question.
Hi,

I use this code to set a field's value:
    field = (FieldType *)GetObjectPtr(MonthField);
   StrCopy(str, "July");
   FldInsert(field, str, StrLen(str));

And this code to read:
   field = (FieldType *)GetObjectPtr(YearField);
   str = FldGetTextPtr(field);
   val = StrAToI(str);

1) Inserting the string is always at the end of the current field. (is there
an insertion point?)
2) The reading not always brings the value in the given field.

I know there is a way to lock/unlock memory when reading/writing to it
strings.
How do I do it and why is the neccessary to lock/unlock?

I'd be glad to understand better.
-Udi



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

Reply via email to