Board index » off-topic » Rebuild and OLd MDX file
|
Mário Reis
Delphi Developer |
|
Mário Reis
Delphi Developer |
Rebuild and OLd MDX file2005-05-05 08:17:17 AM off-topic14 Hi, After 3 years a got an power failure and a few problems. Now i need to rebuild indexes erasing the MDX files and recreat them from the bigining how should i do this . Well i'm using DBF files Thanks Mário |
| Mário Reis
Delphi Developer |
2005-05-05 10:54:29 PM
Re:Rebuild and OLd MDX file
I'm also trying to adapt this TRepair but i' do not find "Borland
Tutility.Pas" found in the Borland ... Can you help Thank's "Mário Reis" < XXXX@XXXXX.COM >wrote in message QuoteHi, |
| Bill Todd
Delphi Developer |
2005-05-05 11:48:47 PM
Re:Rebuild and OLd MDX file
Tutility is the repair tool for Paradox tables.
-- Bill Todd (TeamB) {smallsort} |
| David Harper
Delphi Developer |
2005-05-06 05:44:27 AM
Re:Rebuild and OLd MDX file
"Mário Reis" < XXXX@XXXXX.COM >wrote in message
QuoteHi, - David Harper {------------------------------------------------------------------------------} procedure RemoveMDXByte(dbFile: String); (* Adapted from Delphi Database Development, by Ted Blue, John Kaster, Greg Lief, and Loren Scott page 711 This procedure takes a DBF file name as a parameter. It will patch the DBF header, so that it no longer requires the MDX file. *) const Value: Byte = 0; var F: File of Byte; begin try { except } AssignFile(F, dbFile); try { finally } Reset(F); Seek(F, 28); Write(F, Value); finally CloseFile(F); end; { try } except On E: Exception do begin MessageDlg(E.Message, mtError, [mbOK], 0); raise; end; end; { try } end; { RemoveMDXByte } |
| Mário Reis
Delphi Developer |
2005-05-07 09:17:30 PM
Re:Rebuild and OLd MDX file
Already tryed bu it work's Only with paradox tables
What shoud i do? "Bill Todd" < XXXX@XXXXX.COM >wrote in message QuoteTutility is the repair tool for Paradox tables. |
| Bill Todd
Delphi Developer |
2005-05-07 10:24:00 PM
Re:Rebuild and OLd MDX file
I am not a dBase user. Have you tried David's suggestion?
Try posting your question in the desktop.database newsgroup. You are more likely to find a dBase user there. -- Bill Todd (TeamB) |
