I remember the original question was " how to get the field names of a record"
Let's assume that we can retrieve the AppInfo block from the PDB header. If the AppInfo block is defined as typedef struct { UInt16 renamedCategories; Char categoryLabels[16][16]; UInt8 categoryUniqIDs[16]; UInt8 lastUniqID; UInt8 padding; } AppInfoType; as on this page: http://www.palmos.com/dev/support/docs/fileformats/PDB+PRCFormat.html then how is the category information related to the field names/types/offsets/length ? so far I'm not convinced that we can retrieve the record structure given an arbitrary pdb along with its AppInfo block. Wei --- In [EMAIL PROTECTED], "Viren" <[EMAIL PROTECTED]> wrote: > Thanks Doug for that clarification. > > -Viren > > --- In [EMAIL PROTECTED], Douglas Handy <[EMAIL PROTECTED]> > wrote: > > Viren, > > > > >Correct. But Doug, how would I know what all info is it dumping in > > >the AppInfoBlock or SortInfoBlock ? > > > > You don't have to know what or why they put something in those > blocks, only that > > they exist and how to get to the records. See the docs at > > > http://www.palmos.com/dev/support/docs/fileformats/Intro.html#939653 > for more > > information. > > > > You don't want to assume the records begin after the recordlist. > On the above > > page you'll find a specific warning about that: > > > > "IMPORTANT: There is always a gap between the final record list > in the header > > and the first block of data in the database, where the first block > might be one > > of the following: the appInfo block, the sortInfo block, raw record > or resource > > data, or the end of the file. The gap is traditionally two bytes > long; however, > > if you write code to parse a database, your code should be able to > handle any > > size gap, from zero bytes long and up. " > > > > >I mean there is no way for me to > > >know by how much do I have to increment my offset > > > > Start at the above page and read the documentation on the formats. > It is > > possible to know... > > > > Doug > > > > -- > > For information on using the Palm Developer Forums, or to > unsubscribe, please see http://www.palmos.com/dev/support/forums/ > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/