Another way is the method used by the built-in apps (eg AddressBook).  Bit
fields are used to indicate if a field exists in the record.  I find that
this method is best for memory conservation.  You won't waste a byte for
each empty field when using deliminators and fixed length always causes
maximum memory usage for each field.  Memory is a important concern when a
database can potentially contain numerous records.  Even saving one byte per
record can make a huge difference.

> ----------
> From:         Steve Austin[SMTP:[EMAIL PROTECTED]]
> Reply To:     Palm Developer Forum
> Sent:         Wednesday, June 07, 2000 2:55 PM
> To:   Palm Developer Forum
> Subject:      RE: Number of Fields
> 
> There are two basic ways to keep track of "fields"  in a record.  Either
> you've got to use some kind of delimeter, or you've got to keep track of
> the
> size of each field.  It's your choice.
> 

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