Microsoft KB Archive/110968: Difference between revisions
From BetaArchive Wiki
m (Text replacement - "<" to "<") |
m (Text replacement - ">" to ">") |
||
Line 58: | Line 58: | ||
<ul> | <ul> | ||
<li>Record length <= 1</li> | <li>Record length <= 1</li> | ||
<li>Record length | <li>Record length > maximum record length</li></ul> | ||
</li> | </li> | ||
<li>Are there no fields?</li> | <li>Are there no fields?</li> | ||
Line 65: | Line 65: | ||
<li>Is the file size invalid? | <li>Is the file size invalid? | ||
<ul> | <ul> | ||
<li>(Start-of-data + the # of records) * rec. length | <li>(Start-of-data + the # of records) * rec. length > file size</li></ul> | ||
'''NOTE''': Start-of-data is where the first byte of the first record begins.</li></ol> | '''NOTE''': Start-of-data is where the first byte of the first record begins.</li></ol> |
Latest revision as of 17:51, 20 July 2020
Article ID: 110968
Article Last Modified on 2/22/2005
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition
- Microsoft FoxPro 2.5b
- Microsoft FoxPro 2.5a
- Microsoft FoxPro 2.5b
- Microsoft FoxPro 2.6 Standard Edition
- Microsoft FoxPro 2.5b for MS-DOS
- Microsoft FoxPro 2.5a
- Microsoft FoxPro 2.5b for MS-DOS
- Microsoft FoxPro 2.6 for MS-DOS
- Microsoft FoxPro 2.5b for Macintosh
This article was previously published under Q110968
SUMMARY
When opening a database file (.DBF), FoxPro checks the header for the following five conditions that indicate corruption in a table:
- Is the record length invalid?
- Record length <= 1
- Record length > maximum record length
- Are there no fields?
- Are there more fields than permitted?
- Is the number of records < 0?
- Is the file size invalid?
- (Start-of-data + the # of records) * rec. length > file size
Keywords: kbinfo KB110968