>VoidHand h = FldGetTextHandle(someField);
>CharPtr s1 = MemHandleLock(h);
>CharPtr s2 = MemHandleLock(MyArray[0].text);
>StrCopy(s1, s2);
>MemHandleUnlock(h);
>MemHandleUnlock(MyArray[0].text);
This actually isn't a good way to do this from the field's perspective
(though it is fine from a memory perspective). The problem is that you've
changed the text out from underneath the field, and it has no way of
knowing that the text changed... so line breaks, the visual display, etc.
might well be out of sync with the new text.
After doing the appropriate copying, use FldSetTextHandle or the similar
functions; that way the field knows you've been messing around with the
text and can rebuild its internal view of the world.
-David Fedor
Palm Developer Support