>I got an error message when I tried to run a form during development. It said I needed to delete the CDX and recreate it for the file. Deleting, no problem, I can handle that... recreating, problem how?
>
>There were 5 indexes for various fields in the file. I ended up having to run VALIDATE DATABASES RECOVER (as prompted) and then had to manual put the indexes BACK in the database in the PROJECT. There has to be a better way.
What you could do is, once the DBC is back to normal, run GenDBC on the DBC. This will create a .prg that will rebuild the complete DBC from nothing. If your indexes get corrupted, all you have to do is extract the code from the prg for rebuilding the indexes on the affected tables. You'll find gendbc in HOME()+"\tools\gendbc\gendbc.prg".