Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Offset value in .dbf header
Message
 
 
To
06/02/2002 10:43:43
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00616052
Message ID:
00616073
Views:
21
Andrew,

The order of the fields in the header is the order of the columns in the part of the file that contains the data rows.

>I am tinkering with tables opened with fopen() and I'm also looking at them with a hex editor. I have observed that for any field numbered n:
>
> OFFSETn = (FIELD LENGTH n -1 + FIELD LENGTH n - 2 + ... + FIELD LENGTH 1) + 1
>
>i.e. the sum of all previous field lengths + 1.
>
>Q: Is this always true, or is it possible for a field's offset value to be independent of the order of its description in the table header?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform