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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autofix a corrupted index file ?

Status
Not open for further replies.

sarah77

Programmer
Jun 4, 2002
36
0
0
US
I've a program written in VFP5 and I open the tables at the begining :
use employee in 1
use payrol in 2
use vacations in 3
and I close the tables when the program is end.

Some times "Index does not math...." comes to the user so
is there a way to detect that index is corrupted and fix it automatically ?

I used to fix it by overwriting the corrupted one by a good copy of an original one then reindex manually.

I hope someone to tell me a way to fix without exiting the prorgam.

Thanks
 
Hi

I tend to add a re-indexing utilty programme (which includes a backup and restore facilty) with any distributed apps which does exactly what you do, but progamatically. The fix for the error just becomes part of the help files. I would love to think that there was a way to do this by capturing the error, but I have never got round to doing it. Derren
[Mediocre talent - spread really thin]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top