In my application I have a program to recreate indexes for all of my files. Here is a sample code:
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
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
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit