I have 2 programs in VFP6.
I delete all the .CDX before index.
in one all ok, but in the other no.
An error say when open the .DBF that no exist the .CDX
what happend?
THXS!
There must be something different in the way the files are opened in the 2 programs that cause an error. Are you opening the file with an index tag name like "USE MYFIILE IN 0 ORDER TAG1" ?
Be that as it may... it's not good programming practice to erase index files. Why do you need to erase index files? The only time they should be erased is when you have a reason to suspect that they have become corrupted or damaged, and then they should be removed by the "DELETE TAG ALL" method above, followed immediately by a series of commands to rebuild them (i.e. INDEX ON TRANDATE TAG TRANDATE, etc.)
You could also add the line SAFETY=OFF to your config.fpw file, or SET SAFETY OFF in your startup routine.
That will prevent the error from displaying.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.