The problem might be in null-terminating the char array.  I tried assigning
constants to the array just to test it out and it worked.  Should I assign NULL
to all the char elements in the structure before Unpacking? For example,
rec.Data[0] = NULL; rec.Data[1] = NULL; etc.  Thank you for pointing this out.


-Elizabeth



|--------+----------------------->
|        |          chongwm@tinyd|
|        |          evices.com   |
|        |                       |
|        |          10/03/00     |
|        |          06:43 PM     |
|        |          Please       |
|        |          respond to   |
|        |          palm-dev-foru|
|        |          m            |
|        |                       |
|--------+----------------------->
  >-----------------------------------------------------------|
  |                                                           |
  |       To:     [EMAIL PROTECTED]              |
  |       cc:                                                 |
  |       Subject:     Re: How to update a specified field in |
  |       the database                                        |
  >-----------------------------------------------------------|





Probably an artifact issue. I don't think she null-terminated her char
arrays. So, if the old string is longer than the new one, she'ld be
reading past the new one into the old one. Remember that she didn't
DmResizeRecord() on the record either.

Richard Hartman wrote:
>
> Wait a sec ... if the -old- data is larger you have the problem?  I would
> expect problems if the -new- data is larger ...
>

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




-- 
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