Chris Tutty wrote:
I've seen this technique of a using a struct to describe the fixed
elements and appending strings to the end of it fairly often in
Palm OS apps - I'm sure at least one of the sample apps does
things this way so it's not only not impossible, it's fairly standard
for Palm OS.
I would say; precisely right. I use this technique often, where I write
the record in 2 parts; the 1st is a fixed structure, with a little
internal padding to allow for slight structure changes in the future,
and the 2nd part is a variable length data buffer, or series of
buffers. I used to do it element by element, tagging each element with
a specific identifier, but that took a lot of coding. Bundling the
majority of the stuff into a strucutre is just so much tidier and quicker
Bob.
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/