Hello Bobby,

I think you're on the right track - but the header is only 16 bytes: The 2
bytes preceeding the field name is the file id. The field name is followed
by a 2 byte select sequence number, again followed by a 2 byte sort priority
number.

The select field template size found in the header includes the 16 byte
header - so to calculate the number of fields you'd say (template size - 16)
/ 32

Best regards,
Carsten Flensburg

----- Original Message ----- 
From: <Bobby.Hicks@xxxxxxxxxxxxxxxx>
To: <mi400@xxxxxxxxxxxx>
Sent: Thursday, July 17, 2003 12:45 PM
Subject: [MI400] Field list in Query object


> Can anyone tell me if I am missing something.
>
> I want to retrieve a list of fields from a file used in a query.  I found
> that the offset to the field list is at 7C.  Then the space at  the offset
> found at 7c as the following format:    18 char header (the first 4 bytes
> are the size of the space) then each field occupies a 32 byte space.  Is
> there something that would tell you how many fields, etc are in the list
> or do you have to calculate the number of fields by space size by 32?



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.