Compile, Set LogErrors, Set("LogErrors")
COMPILE converts your source code into executable object code, checking for errors along the way. SET LOGERRORS determines whether a log file containing the errors is created.
Usage |
COMPILE FileSkel [ ENCRYPT ] [ NODEBUG ] [ AS nCodePage ] SET LOGERRORS ON | OFF lLogOn = SET( "LOGERRORS" ) |
Example |
* This code would be found in the Click method of an Execute * button on a Command Window emulator form. It assumes that * edtCode is the name of an edit box on the form into which * the user types the code to execute. * Copy the code to a temporary file, then compile it, execute * it, and erase the temporary PRG and FXP files. lcTempPRG = SYS(2015) STRTOFILE(Thisform.edtCode.Value, lcTempPRG) COMPILE (lcTempPRG) DO (lcTempPRG) ERASE (lcTempPRG) ERASE FORCEEXT(lcTempPRG, 'FXP') |
See Also |
Build App, Build EXE, Build Project, Compile Classlib, Compile Database, Compile Form, Compile Label, Compile Report, ExecScript(), Set Notify |