Navigation: Language Reference > 13 - Built-in Functions >====== SETEXITCODE (set program exit code) ====== | |
SETEXITCODE( exit code )
SETEXITCODE | Sets the program's exit code. |
exit code | A positive integer constant or variable which is the exit code to pass to DOS, setting the DOS ERRORLEVEL. If omitted, the default is zero. |
SETEXITCODE is used to set a program's exit code (error level). This is useful in displaying some meaningful message or action without the necessity of closing the program immediately.
See Also: GETEXITCODE