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!

Creating indexes script base

Status
Not open for further replies.

ShortyII

Programmer
Sep 8, 2003
57
0
0
NL
Hi,

This is the following question.
I have a table with some indexes.
But the 3 and 6 index i want to delete but then i get a "General foxpro protection Error" which results in the deletion of the cdx file.
Now i want to create my cdx file from the bottom off.

So is there a option to read all the current indexes save this in a file change and delete somthing in this file.
After that execute the file and he will create a cdx file with all indexex.

Thanx in advance!
 
I don't know what is causing the "general foxpro protection error" you mentioned. Maybe somebody else has a clue.

About the code to recreate the indexes, take a look at these from the VFP forum, I think you can modify the code to run in FP.

VFP Open file with corrupt index
thread184-593266 check Slighthaze's post

ReBuild your CDX index files
faq184-1033 by Ramani

Remove CDX reference from table
faq184-4352 by rob444
 
Thanx mlv1055
You pointed me to the right FAQ
It works just fine.

Thanx Again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top