- Code: Select all Expand view
- DELETE FILE evemnt.cdx
oDB := tdata():new(, "evemnt",, .f. )
IF oDB:use()
oDB:createIndex( "evemnt", "upper(vehlic)",,, .t., 10 )
ENDIF
oDB:close()
The strategy is to delete the existing CDX file, and then re-create a new one. It has worked well for many years. Recently, apparently the DELETE FILE command is not working. If the CDX is corrupted, it won't reindex and it will fail.
Here is my question. Doesn't DELETE FILE honor the DEFAULT PATH or do I actually need to specify the full path ?
Tim