At 11:49 AM -0700 10/3/00, [EMAIL PROTECTED] wrote:
>problem is in the update data.  If the sizes of old and new data are the same,
>no problem.  If old data size is bigger, it erases data from the following
>field.

You should be calling DmResizeRecord in that case (remember to check 
for the success/failure of the resize).  Maybe the pack/unpack 
routines are doing that already, but it doesn't appear to be 
happening in the code fragment you posted.  I have found it helpful 
to use a second function to compute the size of a record--especially 
when I have some fields that might or might not be used.

----
Hal Mueller                [EMAIL PROTECTED]
Mobile Geographics LLC     http://www.mobilegeographics.com/
Seattle, Washington        (206) 297-9575
 

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

Reply via email to