>>Claudio- you are getting this error because you did not destroy the indexes >correctly- you need to issue DELETE TAG ALL on the table, to let the table >know that you are killing all the tags. Otherwise, the dbf itself thinks it is >still tied to an index file.
>
>Erik,
>
>The situation is: my user deleted accidentaly a CDX file from HD? How can I regenerate it? The same for DBC.
>
>Thanks in Advance!
THe only way I know to solve this in the runtime envirnment (in VFP environment its easy: just open the table and choose ignore) is to open the table with FOPEN and modify byte 28 accordingly. This byte holds flags information that signifies if the table has a structural CDX or memo file attached. See the VFP help under file structures for details.
Erik Moore
Clientelligence