Here is the Stucture for the database record:

typedef struct {
 UInt16 fid;
 char  *fname;
}FDBRecordType;
You cannot store character pointers in a DB effectively -- if that's pointing to memory on the dynamic heap, there's no guarantee that the pointer will still be valid on later runs of the program. You need to store a copy of the field name in the record and use some sort of pack/unpack mechanism to get access to the string.


--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.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