From 2097440ae67d106106d95e09e38694359d2247ae Mon Sep 17 00:00:00 2001 From: luca Date: Fri, 2 Feb 2007 16:54:52 +0000 Subject: [PATCH] Patch level :4.0 602 Files correlati : Ricompilazione Demo : [ ] Commento : Correzione trasferimento da galileo git-svn-id: svn://10.65.10.50/trunk@14839 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ve/ve7701.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) 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);