On Mon, Jul 17, 2000 at 10:42:49AM -0400, Dave Lippincott wrote:
> From: "Oskie" <[EMAIL PROTECTED]>
> Sent: Sunday, July 16, 2000 10:13 PM
>
> > I need to update several fields in my form. But once I update a field
> > longer than its original length, it goes haywire. What seems to be the
> > problem? This is how my code works:
> >
> > 1) Get the current record.
> > 2) Change the fields that I want to update.
> > 3) Get the current record length.
> > 4) Use DmWrite or StrCopy to update the fields.
>
> try
>
> Get the field handle
> resize the handle
> copy the string
> release the handle
Alternately, you can use FldDelete() & FldInsert() which takes care of
the handles for you.
John
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/