Patch level : 10.0

Files correlati     : ba1.exe
Ricompilazione Demo : [ ]
Commento            :
Migliorata conversione indici


git-svn-id: svn://10.65.10.50/trunk@17812 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2008-12-04 16:39:03 +00:00
parent 583a229d2b
commit 453c44fd4c
2 changed files with 7 additions and 7 deletions

View File

@ -969,11 +969,11 @@ void TManutenzione_app::update_dir()
{
if (flags < 10000L && to_create)
{
remove(d.filename());
xvt_fsys_file_remove(d.filename());
TToken_string idx_names;
get_idx_names(i, idx_names);
for (const char * idx_name = idx_names.get(); idx_name != NULL; idx_name = idx_names.get())
remove(idx_name);
FOR_EACH_TOKEN(idx_names, idx_name)
xvt_fsys_file_remove(idx_name);
d.get(i, _nolock, _nordir, _sysdirop);
d.eod() = 0L;
d.eox() = 0L;

View File

@ -384,15 +384,15 @@ int TIsam_date_converter::convert_file(int logicnum)
{
// Remove files partially converted
old.ext("dbf");
::remove(old);
xvt_fsys_file_remove(old);
TToken_string t(10);
get_idx_names(logicnum,t);
for (const char * name=t.get(0); name != NULL; name=t.get())
::remove(name);
FOR_EACH_TOKEN(t, name)
xvt_fsys_file_remove(name);
if (t.items() > 1) // A .cgp must be removed too!
{
old.ext("cgp");
::remove(old);
xvt_fsys_file_remove(old);
}
// Put dir to restore original EOD and EOX.
dir.get(logicnum,_lock,_nordir,_sysdirop);