Darren Franklin wrote:

> I have an application that I want to revise and add more data to the records
> that already exist.  How would you do this?
>
> My guess is that an updating function would need to be written which opens
> the old records 1 at a time, and copies the data to the new record
> structure, and adding appropriate defaults for the new data fields.  But how
> would you do this if you had to save the data back into the same database?

It comes down to knowing the exact binary format of the database you plan to use.  I 
like to think of the Palm database API as a
protected memory manager API due to the scope of functions presented.

Most Palm database formats have a single card per record scheme implemented where, say 
in the Address Book database, a single
address is saved as a single record.  Thus indexing is just a matter of opening the 
called record according to the literal index..

The four PIM applications (Datebook, Address, ToDo and Notepad) formats are published 
and can be found in either independent web
sites on the net or the Palm Knowledge Base.  Once you know that format, it is just a 
matter of getting those records and accessing
the record binary.

Steve



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