Changeset: 397 fdbozzo - 07/08/2014 00:18:05:
This commit is contained in:
@@ -2,8 +2,8 @@ Lparameters toUpdateInfo
|
|||||||
|
|
||||||
Local lcNote
|
Local lcNote
|
||||||
With toUpdateInfo
|
With toUpdateInfo
|
||||||
.VersionNumber = 'v1.19.29'
|
.VersionNumber = 'v1.19.30'
|
||||||
.VersionDate = Date(2014,08,01)
|
.VersionDate = Date(2014,08,07)
|
||||||
.SourceFileUrl = 'http://vfpxrepository.com/dl/thorupdate/Projects/FoxBin2Prg/FoxBin2Prg.Zip'
|
.SourceFileUrl = 'http://vfpxrepository.com/dl/thorupdate/Projects/FoxBin2Prg/FoxBin2Prg.Zip'
|
||||||
|
|
||||||
.Link = 'http://vfpx.codeplex.com/wikipage?title=FoxBin2PRG'
|
.Link = 'http://vfpx.codeplex.com/wikipage?title=FoxBin2PRG'
|
||||||
@@ -17,8 +17,11 @@ Demo video using FoxBin2Prg with PlasticSCM: http://youtu.be/sE4wQ50Itqg
|
|||||||
|
|
||||||
Change History -------------------------------------------------------------
|
Change History -------------------------------------------------------------
|
||||||
|
|
||||||
|
2014/08/07 v1.19.30
|
||||||
|
- Bug Fix vcx/scx: Bad EndText block detection when the previous line end with "," or ";" (Jim Nelson)
|
||||||
|
|
||||||
2014/08/01 v1.19.29
|
2014/08/01 v1.19.29
|
||||||
- Bug Fix vcx/scx: Bad text/endtext block detection when there is a line that begins with a "text" field and previous line end with "," in regards of ";" (M_N_M)
|
- Bug Fix vcx/scx: Bad Text block detection when the previous line ends with "," (M_N_M)
|
||||||
- Optimizations and refactoring
|
- Optimizations and refactoring
|
||||||
|
|
||||||
2014/07/26 v1.19.28
|
2014/07/26 v1.19.28
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ DEFINE CLASS ut__foxbin2prg__c_conversor_base__IdentificarBloquesDeExclusion as
|
|||||||
laLineasExclusion_Esperadas( 8) = .T.
|
laLineasExclusion_Esperadas( 8) = .T.
|
||||||
laLineasExclusion_Esperadas( 9) = .T.
|
laLineasExclusion_Esperadas( 9) = .T.
|
||||||
|
|
||||||
TEXT TO lcMethod NOSHOW TEXTMERGE FLAGS 1 PRETEXT 1+2+4
|
TEXT TO lcMethod NOSHOW TEXTMERGE FLAGS 1 PRETEXT 1+2
|
||||||
<<C_PROC>> myMethod_B
|
<<C_PROC>> myMethod_B
|
||||||
*-- Code Block
|
*-- Code Block
|
||||||
<<C_IF_F>>
|
<<C_IF_F>>
|
||||||
@@ -132,7 +132,7 @@ DEFINE CLASS ut__foxbin2prg__c_conversor_base__IdentificarBloquesDeExclusion as
|
|||||||
laLineasExclusion_Esperadas( 8) = .T.
|
laLineasExclusion_Esperadas( 8) = .T.
|
||||||
laLineasExclusion_Esperadas( 9) = .T.
|
laLineasExclusion_Esperadas( 9) = .T.
|
||||||
|
|
||||||
TEXT TO lcMethod NOSHOW TEXTMERGE FLAGS 1 PRETEXT 1+2+4
|
TEXT TO lcMethod NOSHOW TEXTMERGE FLAGS 1 PRETEXT 1+2
|
||||||
<<C_PROC>> myMethod_B
|
<<C_PROC>> myMethod_B
|
||||||
*-- Code Block
|
*-- Code Block
|
||||||
<<C_IF_F>>
|
<<C_IF_F>>
|
||||||
@@ -176,7 +176,7 @@ DEFINE CLASS ut__foxbin2prg__c_conversor_base__IdentificarBloquesDeExclusion as
|
|||||||
laLineasExclusion_Esperadas( 8) = .T.
|
laLineasExclusion_Esperadas( 8) = .T.
|
||||||
laLineasExclusion_Esperadas( 9) = .T.
|
laLineasExclusion_Esperadas( 9) = .T.
|
||||||
|
|
||||||
TEXT TO lcMethod NOSHOW TEXTMERGE FLAGS 1 PRETEXT 1+2+4
|
TEXT TO lcMethod NOSHOW TEXTMERGE FLAGS 1 PRETEXT 1+2
|
||||||
<<C_PROC>> myMethod_B
|
<<C_PROC>> myMethod_B
|
||||||
*-- Code Block
|
*-- Code Block
|
||||||
<<C_TEXT>>
|
<<C_TEXT>>
|
||||||
@@ -211,7 +211,7 @@ DEFINE CLASS ut__foxbin2prg__c_conversor_base__IdentificarBloquesDeExclusion as
|
|||||||
laExpected_Pos(1,1) = 0
|
laExpected_Pos(1,1) = 0
|
||||||
laExpected_Pos(1,2) = 0
|
laExpected_Pos(1,2) = 0
|
||||||
|
|
||||||
TEXT TO lcMethod NOSHOW TEXTMERGE FLAGS 1 PRETEXT 1+2+4
|
TEXT TO lcMethod NOSHOW TEXTMERGE FLAGS 1 PRETEXT 1+2
|
||||||
<<C_PROC>> myMethod_B
|
<<C_PROC>> myMethod_B
|
||||||
*-- Code Block
|
*-- Code Block
|
||||||
IF !FOUND()
|
IF !FOUND()
|
||||||
@@ -292,7 +292,7 @@ DEFINE CLASS ut__foxbin2prg__c_conversor_base__IdentificarBloquesDeExclusion as
|
|||||||
laLineasExclusion_Esperadas(I) = .T.
|
laLineasExclusion_Esperadas(I) = .T.
|
||||||
ENDFOR
|
ENDFOR
|
||||||
|
|
||||||
TEXT TO lcMethod NOSHOW TEXTMERGE FLAGS 1 PRETEXT 1+2+4
|
TEXT TO lcMethod NOSHOW TEXTMERGE FLAGS 1 PRETEXT 1+2
|
||||||
<<C_PROC>> myMethod_B
|
<<C_PROC>> myMethod_B
|
||||||
*-- Code Block
|
*-- Code Block
|
||||||
IF ODBC_Query.odbc
|
IF ODBC_Query.odbc
|
||||||
@@ -335,4 +335,56 @@ DEFINE CLASS ut__foxbin2prg__c_conversor_base__IdentificarBloquesDeExclusion as
|
|||||||
ENDFUNC
|
ENDFUNC
|
||||||
|
|
||||||
|
|
||||||
|
*******************************************************************************************************************************************
|
||||||
|
FUNCTION Deberia_EncontrarBloque_TEXT_ENDTEXT_CuandoEvaluaUnaLineaQueTerminaConUn_EndText_YLineaAnteriorTerminaEn_Coma
|
||||||
|
LOCAL lcMethod, laLineas(1), lnLineas, laPos(1,2), lnPos_Count, laExpected_Pos(1,2) ;
|
||||||
|
, laLineasExclusion(23), laLineasExclusion_Esperadas(23)
|
||||||
|
LOCAL loObj AS c_conversor_prg_a_bin OF "FOXBIN2PRG.PRG"
|
||||||
|
loObj = THIS.icObj
|
||||||
|
|
||||||
|
*-- Input and expected params
|
||||||
|
STORE '' TO lcMethod
|
||||||
|
laExpected_Pos(1,1) = 3
|
||||||
|
laExpected_Pos(1,2) = 13
|
||||||
|
FOR I = 3 TO 13
|
||||||
|
laLineasExclusion_Esperadas(I) = .T.
|
||||||
|
ENDFOR
|
||||||
|
|
||||||
|
TEXT TO lcMethod NOSHOW TEXTMERGE FLAGS 1 PRETEXT 1+2
|
||||||
|
<<C_PROC>> Init
|
||||||
|
Local lcRowSource
|
||||||
|
<<C_TEXT>> To lcRowSource Textmerge Noshow
|
||||||
|
Overview,ItemDtl,
|
||||||
|
Forecasting,Forecasting,
|
||||||
|
Purchase Orders,PurchaseOrders,
|
||||||
|
Sales Orders,SalesOrders,
|
||||||
|
Sales History,History,
|
||||||
|
Inventory,Bins,
|
||||||
|
Inventory History,InventoryHistory,
|
||||||
|
Configuration,PartsInfo,
|
||||||
|
Operations,Operations,
|
||||||
|
<<C_ENDTEXT>>
|
||||||
|
|
||||||
|
|
||||||
|
This.RowSource = Chrtran(lcRowSource, CRLF, '')
|
||||||
|
This.ControlSource = 'Thisform.cStartPage'
|
||||||
|
This.Value = ReadSetting('Item Detail Start Page', 'ItemDtl', .F., .T.)
|
||||||
|
<<C_ENDPROC>>
|
||||||
|
<<C_PROC>> Valid
|
||||||
|
WriteSetting('Item Detail Start Page', This.Value, .F., .T.)
|
||||||
|
Thisform.comboPartno.SetFocus()
|
||||||
|
<<C_ENDPROC>>
|
||||||
|
ENDTEXT
|
||||||
|
|
||||||
|
lnLineas = ALINES( laLineas, lcMethod )
|
||||||
|
|
||||||
|
*-- Test
|
||||||
|
loObj.identificarBloquesDeExclusion( @laLineas, lnLineas, , @laLineasExclusion, @lnPos_Count, @laPos )
|
||||||
|
|
||||||
|
*-- Evaluaci<63>n de resultados
|
||||||
|
THIS.Evaluate_results( @laExpected_Pos, @laPos, lnPos_Count, @laLineasExclusion_Esperadas, @laLineasExclusion )
|
||||||
|
|
||||||
|
ENDFUNC
|
||||||
|
|
||||||
|
|
||||||
ENDDEFINE
|
ENDDEFINE
|
||||||
|
|||||||
BIN
foxbin2prg.exe
BIN
foxbin2prg.exe
Binary file not shown.
@@ -23,10 +23,10 @@ _CompanyName = "Fernando D. Bozzo"
|
|||||||
_FileDescription = "Conversor bidireccional de binarios FoxPro 9 (scx,vcx,pjx) a texto para sustituir al scctext :-)"
|
_FileDescription = "Conversor bidireccional de binarios FoxPro 9 (scx,vcx,pjx) a texto para sustituir al scctext :-)"
|
||||||
_LegalCopyright = "Creative Commons 4: Reconocimiento - CompartirIgual (by-sa): http://creativecommons.org/licenses/by/4.0/"
|
_LegalCopyright = "Creative Commons 4: Reconocimiento - CompartirIgual (by-sa): http://creativecommons.org/licenses/by/4.0/"
|
||||||
_LegalTrademark = "Creative Commons 4: Reconocimiento - CompartirIgual (by-sa): http://creativecommons.org/licenses/by/4.0/"
|
_LegalTrademark = "Creative Commons 4: Reconocimiento - CompartirIgual (by-sa): http://creativecommons.org/licenses/by/4.0/"
|
||||||
_ProductName = " FOXBIN2PRG v1.19.29"
|
_ProductName = " FOXBIN2PRG v1.19.30"
|
||||||
_MajorVer = "1"
|
_MajorVer = "1"
|
||||||
_MinorVer = "19"
|
_MinorVer = "19"
|
||||||
_Revision = "29"
|
_Revision = "30"
|
||||||
_LanguageID = "1034"
|
_LanguageID = "1034"
|
||||||
_AutoIncrement = "0"
|
_AutoIncrement = "0"
|
||||||
*</DevInfo>
|
*</DevInfo>
|
||||||
|
|||||||
BIN
foxbin2prg.pjt
BIN
foxbin2prg.pjt
Binary file not shown.
BIN
foxbin2prg.pjx
BIN
foxbin2prg.pjx
Binary file not shown.
@@ -96,6 +96,7 @@
|
|||||||
* 02/06/2014 DH/FDBOZZO v1.19.27 Mejora: Agregado soporte para exportar datos para DIFF (no para importar)
|
* 02/06/2014 DH/FDBOZZO v1.19.27 Mejora: Agregado soporte para exportar datos para DIFF (no para importar)
|
||||||
* 21/07/2014 FDBOZZO v1.19.28 Mejora: Agregada funcionalidad para filtrado de tablas y datos cuando se elige DBF_Conversion_Support:4 (Edyshor)
|
* 21/07/2014 FDBOZZO v1.19.28 Mejora: Agregada funcionalidad para filtrado de tablas y datos cuando se elige DBF_Conversion_Support:4 (Edyshor)
|
||||||
* 29/07/2014 FDBOZZO v1.19.29 Arreglo bug vcx/scx: Un campo de tabla llamado "text" que comienza la l<>nea puede confundirse con la estructura TEXT/ENDTEXT y reconocer mal el resto del c<>digo
|
* 29/07/2014 FDBOZZO v1.19.29 Arreglo bug vcx/scx: Un campo de tabla llamado "text" que comienza la l<>nea puede confundirse con la estructura TEXT/ENDTEXT y reconocer mal el resto del c<>digo
|
||||||
|
* 07/08/2014 FDBOZZO v1.19.30 Arreglo bug vcx/scx: Cuando la l<>nea anterior a un ENDTEXT termina en ";" o "," no se reconoce como ENDTEXT sino como continuaci<63>n (Jim Nelson)
|
||||||
* </HISTORIAL DE CAMBIOS Y NOTAS IMPORTANTES>
|
* </HISTORIAL DE CAMBIOS Y NOTAS IMPORTANTES>
|
||||||
*
|
*
|
||||||
*---------------------------------------------------------------------------------------------------
|
*---------------------------------------------------------------------------------------------------
|
||||||
@@ -135,6 +136,7 @@
|
|||||||
* 02/06/2014 Doug Hennig MEJORA v1.19.22: Agregada funcionalidad para exportar los datos de las tablas al archivo db2 (Agregado en v1.19.27)
|
* 02/06/2014 Doug Hennig MEJORA v1.19.22: Agregada funcionalidad para exportar los datos de las tablas al archivo db2 (Agregado en v1.19.27)
|
||||||
* 21/07/2014 Edyshor PROPUESTA DE MEJORA db2 v1.19.27: Ser<65>a <20>til poder filtrar tablas y datos cuando se elige DBF_Conversion_Support:4 (Agregado en v1.19.28)
|
* 21/07/2014 Edyshor PROPUESTA DE MEJORA db2 v1.19.27: Ser<65>a <20>til poder filtrar tablas y datos cuando se elige DBF_Conversion_Support:4 (Agregado en v1.19.28)
|
||||||
* 29/07/2014 M_N_M REPORTE BUG vcx/scx v1.19.28: Los campos de tabla con nombre "text" a veces provocan corrupci<63>n del binario generado (Arreglado en v1.19.29)
|
* 29/07/2014 M_N_M REPORTE BUG vcx/scx v1.19.28: Los campos de tabla con nombre "text" a veces provocan corrupci<63>n del binario generado (Arreglado en v1.19.29)
|
||||||
|
* 07/08/2014 Jim Nelson REPORTE BUG vcx/scx v1.19.29: Cuando la l<>nea anterior a un ENDTEXT termina en ";" o "," no se reconoce como ENDTEXT sino como continuaci<63>n (Arreglado en v1.19.30)
|
||||||
* </TESTEO Y REPORTE DE BUGS (AGRADECIMIENTOS)>
|
* </TESTEO Y REPORTE DE BUGS (AGRADECIMIENTOS)>
|
||||||
*
|
*
|
||||||
*---------------------------------------------------------------------------------------------------
|
*---------------------------------------------------------------------------------------------------
|
||||||
@@ -3164,10 +3166,11 @@ DEFINE CLASS c_conversor_base AS SESSION
|
|||||||
DO CASE
|
DO CASE
|
||||||
CASE .elTextoEvaluadoEsElTokenIndicado( @lcLine, @ta_ID_Bloques, lnLen_IDFinBQ, X, 1 ) ;
|
CASE .elTextoEvaluadoEsElTokenIndicado( @lcLine, @ta_ID_Bloques, lnLen_IDFinBQ, X, 1 ) ;
|
||||||
AND NOT THIS.currentLineIsPreviousLineContinuation( @taCodeLines, I )
|
AND NOT THIS.currentLineIsPreviousLineContinuation( @taCodeLines, I )
|
||||||
|
*-- Busca el primer marcador (#IF o TEXT)
|
||||||
lnAnidamientos = lnAnidamientos + 1
|
lnAnidamientos = lnAnidamientos + 1
|
||||||
|
|
||||||
CASE .elTextoEvaluadoEsElTokenIndicado( @lcLine, @ta_ID_Bloques, lnLen_IDFinBQ, X, 2 ) ;
|
CASE .elTextoEvaluadoEsElTokenIndicado( @lcLine, @ta_ID_Bloques, lnLen_IDFinBQ, X, 2 )
|
||||||
AND NOT THIS.currentLineIsPreviousLineContinuation( @taCodeLines, I )
|
*-- Busca el segundo marcador (#ENDIF o ENDTEXT)
|
||||||
lnAnidamientos = lnAnidamientos - 1
|
lnAnidamientos = lnAnidamientos - 1
|
||||||
|
|
||||||
IF lnAnidamientos = 0
|
IF lnAnidamientos = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user