BugFix: Flushing log in directory mode
log was flushed after each file, so only last file was visible
This commit is contained in:
@@ -226,9 +226,11 @@
|
||||
* 01/04/2020 FDBOZZO v1.19.51 Bug Fix: La conversión de tablas falla si algún campo contiene una palabra reservada como UNIQUE (DAJU78)
|
||||
* 01/04/2020 FDBOZZO v1.19.51 Bug Fix: No se respetan las propiedades de VCX/SCX con nombre "note" (Tracy Pearson)
|
||||
|
||||
* 14/02/21 Lutz Scheffler conversion dbf -> prg, error if only test mode (toFoxBin2Prg.l_ProcessFiles is false)
|
||||
* 14/02/2021 Lutz Scheffler conversion dbf -> prg, error if only test mode (toFoxBin2Prg.l_ProcessFiles is false)
|
||||
* minor translations
|
||||
* 14/02/21 Lutz Scheffler conversion prg -> dbf, fields with .NULL. value are incorectly recreated
|
||||
* 14/02/2021 Lutz Scheffler conversion prg -> dbf, fields with .NULL. value are incorectly recreated
|
||||
* 15/02/2021 Lutz Scheffler processing directory, flush log file after loop instead of file
|
||||
* xx/02/2021 Lutz Scheffler proposed: conversion prg -> vcx, files per class could create one class multiple times
|
||||
* </HISTORIAL DE CAMBIOS Y NOTAS IMPORTANTES>
|
||||
*
|
||||
*---------------------------------------------------------------------------------------------------
|
||||
@@ -3271,7 +3273,12 @@ DEFINE CLASS c_foxbin2prg AS Session
|
||||
|
||||
.updateProgressbar( loLang.C_PROCESSING_LOC + ' ' + lcFile + '...', m.I, lnFileCount, 0 )
|
||||
lnCodError = .convert( lcFile, @toModulo, @toEx, .F., tcOriginalFileName )
|
||||
.writeLog_Flush()
|
||||
*!* Changed by: Lutz Scheffler 15.2.2021
|
||||
*!* change date="{^2021-02-15,06:57:00}"
|
||||
* flushing the log after each file let us only see last file
|
||||
* .writeLog_Flush() moved after ENDFOR
|
||||
|
||||
* .writeLog_Flush()
|
||||
|
||||
DO CASE
|
||||
CASE lnCodError = 1799 && Conversion Cancelled
|
||||
@@ -3281,6 +3288,8 @@ DEFINE CLASS c_foxbin2prg AS Session
|
||||
.doWriteErrorLog( @toEx )
|
||||
ENDCASE
|
||||
ENDFOR && I = 1 TO lnFileCount
|
||||
.writeLog_Flush()
|
||||
*!* /Changed by: Lutz Scheffler 15.2.2021
|
||||
|
||||
.updateProgressbar( loLang.C_END_OF_PROCESS_LOC, lnFileCount, lnFileCount, 0 )
|
||||
EXIT
|
||||
@@ -3322,6 +3331,7 @@ DEFINE CLASS c_foxbin2prg AS Session
|
||||
|
||||
.get_FilesFromDirectory( tc_InputFile, @laFiles, @lnFileCount )
|
||||
|
||||
|
||||
FOR I = 1 TO lnFileCount
|
||||
toModulo = NULL
|
||||
lcFile = laFiles(m.I)
|
||||
@@ -3332,7 +3342,12 @@ DEFINE CLASS c_foxbin2prg AS Session
|
||||
|
||||
.updateProgressbar( loLang.C_PROCESSING_LOC + ' ' + lcFile + '...', m.I, lnFileCount, 0 )
|
||||
lnCodError = .convert( lcFile, @toModulo, @toEx, .F., tcOriginalFileName )
|
||||
.writeLog_Flush()
|
||||
*!* Changed by: Lutz Scheffler 15.2.2021
|
||||
*!* change date="{^2021-02-15,06:57:00}"
|
||||
* flushing the log after each file let us only see last file
|
||||
* .writeLog_Flush() moved after ENDFOR
|
||||
|
||||
* .writeLog_Flush()
|
||||
|
||||
DO CASE
|
||||
CASE lnCodError = 1799 && Conversion Cancelled
|
||||
@@ -3342,6 +3357,8 @@ DEFINE CLASS c_foxbin2prg AS Session
|
||||
.doWriteErrorLog( @toEx )
|
||||
ENDCASE
|
||||
ENDFOR && I = 1 TO lnFileCount
|
||||
.writeLog_Flush()
|
||||
*!* /Changed by: Lutz Scheffler 15.2.2021
|
||||
|
||||
.updateProgressbar( loLang.C_END_OF_PROCESS_LOC, lnFileCount, lnFileCount, 0 )
|
||||
EXIT
|
||||
@@ -4558,14 +4575,14 @@ DEFINE CLASS c_foxbin2prg AS Session
|
||||
|
||||
|
||||
PROCEDURE get_FilesFromDirectory
|
||||
LPARAMETERS tcDir, taFiles, lnFileCount
|
||||
LPARAMETERS tcDir, taFiles, tnFileCount
|
||||
EXTERNAL ARRAY taFiles
|
||||
|
||||
LOCAL laFiles(1), I, lnFiles ;
|
||||
, loLang as CL_LANG OF 'FOXBIN2PRG.PRG'
|
||||
|
||||
IF TYPE("ALEN(laFiles)") # "N" OR EMPTY(lnFileCount)
|
||||
lnFileCount = 0
|
||||
IF TYPE("ALEN(laFiles)") # "N" OR EMPTY(tnFileCount)
|
||||
tnFileCount = 0
|
||||
DIMENSION taFiles(1)
|
||||
ENDIF
|
||||
|
||||
@@ -4582,9 +4599,10 @@ DEFINE CLASS c_foxbin2prg AS Session
|
||||
IF SUBSTR( laFiles(m.I,5), 5, 1 ) == 'D'
|
||||
LOOP
|
||||
ENDIF
|
||||
lnFileCount = lnFileCount + 1
|
||||
DIMENSION taFiles(lnFileCount)
|
||||
taFiles(lnFileCount) = tcDir + laFiles(m.I,1)
|
||||
|
||||
tnFileCount = tnFileCount + 1
|
||||
DIMENSION taFiles(tnFileCount)
|
||||
taFiles(tnFileCount) = tcDir + laFiles(m.I,1)
|
||||
ENDFOR
|
||||
|
||||
*-- Busco los subdirectorios
|
||||
|
||||
Reference in New Issue
Block a user