Dana,
Yes, your question does make sense :-) - I believe the answer is
'yes', although I haven't tried this myself yet. The reference manual "Palm
OS Reference.pdf" (available on palmsource.com) has a good write-up of just
this scenario in its description of FldSetText(). (Note that you should
disassociate the database record from the field before the field is free'd
when the form is closed so that the data doesn't get freed along with it.)
-- Stephen
--
Please remove no and spam from my email address if replying by email.
"Dana Long" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Greetings,
>
> I have a database of records that have a fixed size struct followed by a
> variable length null terminated string. Allocating and writing the
> record is no problem. I would like to use a Field on a form to directly
> edit the variable length text string. I understand that I can get a
> handle on the database entry and then use FldSetText(...) specifying the
> offset as the sizeof the struct. Is this a safe way to do this? Will the
> memory chunk be grown and relocated as needed by the field editting code?
>
> I hope this questions makes sense.
>
> Thanks,
>
> Dana
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/