I had two files that were marked in the foxpro project to exclude from the exe/app.
FoxBin2Prg converts the project to pj2 fine but when going from pj2 back to pjx it gives the following error:
Error 36, Command contains unrecognized phrase/keyword.
analyzecodeblock_excludedfiles, 10710
llExclude = EVALUATE( ALLTRIM( CHRTRAN( STREXTRACT( tcLine, "=", "", 1, 2 ), ['], [] ) ) )
FoxBin2Prg: [C:\CARPET\THOR\TOOLS\COMPONENTS\FOXBIN2PRG\FOXBIN2PRG.EXE] (EXE Version: v1.19.45)
tc_InputFile = [C:\CARPET\CARPET.PJ2]
Source file: C:\Carpet\carpet.pj2
The excluded files causing the error are in the program files(x86) directory.
The problem seems to be the parenthesis in this path name.
I believe the cause of the problem is actually the line before this (10709) that reads:
lcFile= LOWER( ALLTRIM( STRTRAN( CHRTRAN( NORMALIZE( STREXTRACT( tcLine, ".ITEM(", ")", 1, 1 ) ), ["], [] ), 'lcCurDir+', '', 1, 1, 1) ) )
The StringExtract is looking for an end parenthesis and having a parenthesis in the path messes it up.
When I run this code in the command window:
? STREXTRACT( tcLine, ".ITEM(", ")", 1, 1 )
it cuts the filename off where the parenthesis closes in the path.
Thanks for this excellent tool!
FoxBin2Prg converts the project to pj2 fine but when going from pj2 back to pjx it gives the following error:
Error 36, Command contains unrecognized phrase/keyword.
analyzecodeblock_excludedfiles, 10710
llExclude = EVALUATE( ALLTRIM( CHRTRAN( STREXTRACT( tcLine, "=", "", 1, 2 ), ['], [] ) ) )
FoxBin2Prg: [C:\CARPET\THOR\TOOLS\COMPONENTS\FOXBIN2PRG\FOXBIN2PRG.EXE] (EXE Version: v1.19.45)
tc_InputFile = [C:\CARPET\CARPET.PJ2]
Source file: C:\Carpet\carpet.pj2
The excluded files causing the error are in the program files(x86) directory.
The problem seems to be the parenthesis in this path name.
I believe the cause of the problem is actually the line before this (10709) that reads:
lcFile= LOWER( ALLTRIM( STRTRAN( CHRTRAN( NORMALIZE( STREXTRACT( tcLine, ".ITEM(", ")", 1, 1 ) ), ["], [] ), 'lcCurDir+', '', 1, 1, 1) ) )
The StringExtract is looking for an end parenthesis and having a parenthesis in the path messes it up.
When I run this code in the command window:
? STREXTRACT( tcLine, ".ITEM(", ")", 1, 1 )
it cuts the filename off where the parenthesis closes in the path.
Thanks for this excellent tool!