-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DbfDataReader use old DBF specification #35
Comments
TipYou can use the following formula to return the number of fields in a table file: (x – 296/32). In the formula, x is the position of the first record (bytes 8 to 9 in the table header record), 296 is 263 (backlink info) + 1 (header record terminator) + 32 (first field subrecord), and 32 is the length of a field subrecord. |
Code Pages Supported by Visual FoxPro
|
Are you able to supply one or more sample files for the Visual FoxPro (0x32) file type with the Varchar, Varbinary, or Blob-enabled columns? |
I would be able to supply some if you would like @chrisrichards? I work with them on a daily basis so I am currently sitting with hundreds of gigs of VFP tables. |
@pyt0xic yes please, if you could send some files that would be great, thanks! Would you be happy for the files to be added to the repo? |
Below some quotes from Microsoft Visual Foxpro documentation.
Very impotant byte for correct table encoding - 29 | Code page mark
Table Header Record Structure
Byte offset | Description
0x02 FoxBASE / dBase
0x03 FoxBASE+ / FoxPro /dBase III PLUS / dBase IV, no memo
0x30 Visual FoxPro
0x31 Visual FoxPro, autoincrement enabled
0x32 Visual FoxPro, Varchar, Varbinary, or Blob-enabled
0x43 dBASE IV SQL table files, no memo
0x63 dBASE IV SQL system files, no memo
0x83 FoxBASE+/dBASE III PLUS, with memo 0x8B dBASE IV with memo
0xCB dBASE IV SQL table files, with memo
0xF5 FoxPro 2.x (or earlier) with memo
0xFB FoxBASE (?)
**- 12 – 27 | Reserved
0x01 file has a structural .cdx
0x02 file has a Memo field
0x04 file is a database (.dbc) This byte can contain the sum of any of the above values. For example, the value 0x03 indicates the table has a structural .cdx and a Memo field.
Field Subrecords Structure
The text was updated successfully, but these errors were encountered: