To dream the impossible dream... 
Does anyone know about a source code conversion tool out there that does this? Has anyone written one in the past?
I had a checklist of things it needed to do for the source code in my case:
[_] Apply common headers, #INCLUDEs
[_] Rework error trapping (no “(N)ext”)
[_] INKEY$ is now WAITKEY$
[_] Remove extended commas from LOCATE
[_] Redo DEFs as FUNCTIONS or MACROS
[_] Search for shell-style print routines (OPEN “LPT1”)
[_] RUN or CHAIN becomes a SHELL():EXIT statement set
[_] Remove $CPU, $DYNAMIC, and $SEGMENT
[_] END or SYSTEM becomes EXIT FUNCTION
[_] PRINT USING is now a PRINT USING$() function call
[_] GET/PUT now includes UDT & assignment to local vars based on FIELD line
[_] Remove all instances of FIELD
[_] OPEN uses LEN(variable) instead of fixed record length number
Hairy, I know. I was just wondering if there was anything out there - no harm in asking, right?
------------------

Does anyone know about a source code conversion tool out there that does this? Has anyone written one in the past?
I had a checklist of things it needed to do for the source code in my case:
[_] Apply common headers, #INCLUDEs
[_] Rework error trapping (no “(N)ext”)
[_] INKEY$ is now WAITKEY$
[_] Remove extended commas from LOCATE
[_] Redo DEFs as FUNCTIONS or MACROS
[_] Search for shell-style print routines (OPEN “LPT1”)
[_] RUN or CHAIN becomes a SHELL():EXIT statement set
[_] Remove $CPU, $DYNAMIC, and $SEGMENT
[_] END or SYSTEM becomes EXIT FUNCTION
[_] PRINT USING is now a PRINT USING$() function call
[_] GET/PUT now includes UDT & assignment to local vars based on FIELD line
[_] Remove all instances of FIELD
[_] OPEN uses LEN(variable) instead of fixed record length number
Hairy, I know. I was just wondering if there was anything out there - no harm in asking, right?
------------------
Comment