Hi,

I've made a dB like this:

typedef Char* PackedRecordPtr;
#define PACKED_NAME(packRec) ((Char*)(packRec))
#define PACKED_PIN(packRec) ((Char*)(packRec + StrLen(packRec)+1))
#define PACKED_TEXT(packRec) ((Char*)(packRec + StrLen(packRec +1))

When I want to put them on my palm screen , like this:

SetFieldText(DetailNameField, PACKED_NAME(packedPinRecPtr));
 SetFieldText (DetailPinField, PACKED_PIN(packedPinRecPtr));
 SetFieldText (DetailTextField, PACKED_TEXT(packedPinRecPtr));

the first two are correct, but the third is the same as the second. What do
I have to change???

Thanks for helping !!



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