Click or drag to resize

ErrorLevel Function

X#
Retrieve and optionally set the X# return code.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 FUNCTION ErrorLevel() AS DWORD
Request Example View Source

Return Value

Type: DWord
If dwNewSetting is not specified, ErrorLevel() returns the current setting.
If dwNewSetting is specified, the previous setting is returned.
Remarks
Tip Tip
After a RUN command, a return value of less than 32 from ErrorLevel(), indicates an error. (Refer to the Windows API WinExec() function for more information.)
Examples