Can i not store this information in the application preferences block?
The real problem i have, is how to pack and unpack the data to/from the
database record or
if possible from the application prefrences block.

Could you please point me to the place in the address-application where this
is done?

Regards
Peter

"David Beers" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Chris is right: go to the API reference and read the API functions that are
in the Data Manager.  These are the only way the system will let you write
to the storage heap.  Just wanted to add, though, that you don't ever want
to store the pointers themselves in a database record.  The system is free
to move unlocked chunks around to accommodate new allocations so they're
likely to be invalid when you try to use them later.

What you'll need when working with string data of arbitrary length is to
write a couple of functions to pack and unpack data to/from the database
record.  The SDK sample applications are a good place to start for examples
of how to do this.  Probably the Address application is the best example.

David
=========================
David Beers
Pikesoft Mobile Computing
www.pikesoft.com





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

Reply via email to