Board index » off-topic » Rebuild and OLd MDX file

Rebuild and OLd MDX file


2005-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
 
 

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
Quote
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

 

Re:Rebuild and OLd MDX file

Tutility is the repair tool for Paradox tables.
--
Bill Todd (TeamB)
 

{smallsort}

Re:Rebuild and OLd MDX file

"Mário Reis" < XXXX@XXXXX.COM >wrote in message
Quote
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
After you execute the following, you will be able to rebuild index however
you choose.
- 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 }
 

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
Quote
Tutility is the repair tool for Paradox tables.

--
Bill Todd (TeamB)
 

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)