The DBase III File Format

The DBase III File Format

Also known as: DBF


Original Documentation

			  DBASE - File header structure (DBASE III)
OFFSET              Count TYPE   Description
0000h                   1 byte   dBASE version,
								   03h = dBASE III w/o *.DBT
								   83h = dBASE III w *.DBT
0001h                   1 byte   Month of last update
0002h                   1 byte   Day of last update
0003h                   1 byte   Year of last update
0004h                   1 dword  Number of data records in file
								 ="NDR"
0008h                   1 word   Header size
								 ="HSZ"
000Ah                   1 word   Data record size
								 ="DRS"
000Ch                  12 byte   reserved
0020h                   ? rec    Field descriptors
								 The list of field descriptors is
								 terminated with a terminator
								 byte 0Dh.
					   11 char   ASCIIZ field name
						1 char   Data type
								 'C' - Char
								 'D' - Date
								 'L' - Logical
								 'M' - Memo
								 'N' - Numerical
						1 dword  Field data address ( set in RAM )
						1 byte   Field length
						1 byte   Number of decimal places
					   14 byte   reserved
EXTENSION:DBF
SEE ALSO:DBASE II,XBase
OCCURENCES:PC
PROGRAMS:DBase
VALIDATION:FileSize="NDR"*"DRS"+"HSZ"

This information is from Corion.net and is used with permission.

More Resources