>Subject: Updating records >From: "Dave Mottorn" <[EMAIL PROTECTED]> > >Can anyone see what's wrong here? I'm trying to update a record - both the >old and new records are character strings about 80 bytes long. I'm getting >a DmWriteCheck error. > > <SNIP> > RecHand = DmGetRecord(TranDB, sumfilerecno); > record = MemHandleLock(RecHand); > temprecord = *record; > StrCopy(temprecord.field, tranbuf); >
You can't use StrCopy when the destination is a pointer to a record in a PDB file. (the line before it is also suspicious) Roger Stringer Marietta Systems, Inc. (www.RF-TP.com) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
