diff --git a/ve/ve7701.cpp b/ve/ve7701.cpp index 421048d6f..7e30bbe3c 100755 --- a/ve/ve7701.cpp +++ b/ve/ve7701.cpp @@ -88,7 +88,7 @@ bool TGalileo_clifo::dump() TFilename path = _path; path.add("clifo.txt"); TSystemisamfile clifo(LF_CLIFO); - int err = clifo.dump(path, lista_dump, 1, '|', '\0', '\10', true, false, NULL, select_clifo, this); + int err = clifo.dump(path, lista_dump, 1, '|', '\0', '\n', true, false, NULL, select_clifo, this); if (err == NOERR) log("Errore di scrittura del file clifo.txt", 0); return true; @@ -258,17 +258,23 @@ bool TGalileo_articoli::dump() if (campo_orig.full()) lista_dump.add(campo_dest); } - TFilename path = _path; - path.add("umart.txt"); + ini.list_variables(lista_anamag, true, "UMART", true); + TToken_string lista_umart; + FOR_EACH_ARRAY_ROW(lista_anamag,k,rowu) + { + rowu->get(0, campo_dest); + lista_umart.add(campo_dest); + } TSystemisamfile anamag(LF_ANAMAG); TSystemisamfile umart(LF_UMART); - TToken_string cazzo; // Programma interessante, ma per pochi! - int err = umart.dump(path, cazzo, 1, '|', '\0', '\10', true, false, + TFilename path = _path; + path.add("umart.txt"); + int err = umart.dump(path, lista_umart, 1, '|', '\0', '\n', true, false, NULL, select_umart, this); if (err != NOERR) log("Errore di scrittura umart.txt", 2); path = _path; path.add("anamag.txt"); - err = anamag.dump(path, lista_dump, 1, '|', '\0', '\10', true, false, + err = anamag.dump(path, lista_dump, 1, '|', '\0', '\n', true, false, NULL, select_articoli, this); if (err != NOERR) log("Errore di scrittura anamag.txt", 0);