Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error reading Blob File

Status
Not open for further replies.

Brainerd

MIS
Aug 16, 2002
2
US
I am using Delphi 5 maintaining Dbase files with memo fields. These memo fields are stored in DBT files, and a link is established in the Dbase file to the DBT record. After a power outage the DBT file got corrupted in serveral places. This causes the Dbase record to create an error because it cannot find the corresponding DBT record. I cannot restore from a backup because the data in the Dbase file would be lost, and if I do not restore both DBASE and DBT files I will have a mismatch in files. The problem is that the Dbase file is expecting DBT records. I cannot even substitute a blank uncorrupted DBT file. I know that the header record on the DBASE file contains information such as is there a MDX file attached. I have already modified the header record using Delphi to reset the MDX flag. Is there a way I can reset the records containing a link to the DBT File ?

Thank you in advance.
 
If I remember well, the 7. bit of the first byte of the header shows that the dbf has memo. Clear this bit to open the dbf whithout dbt.

Otto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top