The following code does the same as EXECSCRIPT but don't generate an error in case of errors during compilation of the code. However, it still may generate runtime errors.
lcTempName = ADDBS(SYS(2023)) + SYS(2015)
STRTOFILE(lcMycode, lcTempName + ".PRG")
COMPILE (lcTempName + ".PRG")
IF (lcTempName + ".ERR")
ELSE
DO (lcTempName + ".FXP")
ENDIF
ERASE (lcTempName + ".*")
>Sorry, clearify my question :
>
>I build the commands in runtime, and use EXESCRIPT() to run the program. Just want to make the statements are correct. So I need a way to verify it before I running in runtime.
>
>TIA.
--sb--