> So if I understand where you were going with checking
> the length of the string to popluate the record, the
> difference is that each field would hold a distinct
> string.
No, you'll have the same problems here as you did with your
original version. See the code I mailed directly to you.
Think of your record as a continuous set of bits. In your
case the bits are characters. So let's say your four strings
that you get back are: bill, frank, bob, sam. Your record
will be: bill0frank0bob0sam0
Where 0 means the \0 character. So your record in this case
is a size of 19. If you just write to the third string, and
you put 'bart' as the name, you'd have:
bill0frank0bart0am0 <- Note the loss of the S on sam
What I'm saying is you need to read all of your existing
strings from that one record, then figure out the size of
the three you're keeping plus the new one, and resize the
record to be that big. Then write them back out again so
that you don't lose anything.
Remember, 'Char' means a single character. 'Char *' means
a pointer to a character, which let's you do strings.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/