Hi

I read so much about packing a structure that has more than one
textfield before saving it in a database.

Can anybody try to explain me how much memory this saves?

If I had a structure
struct{
    UInt16 id
    char * field1
    char*  field2
}test

and the text strings in field 1 and two don't have the same length (for each
record)
isn't one database record saved like
Address x:  id
Address y: field1
Address z: field2

whereas z = y + strLen(field1) ?

So, where is the big advantage to pack everything to
a new structure
struct{
    UInt16 id
    char  fields[1]
}packedtest


Sorry that I haven't get it yet... can anyone help?

many thanks,

Dyk




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

Reply via email to