Shell.ErrorCode
From Xojo Documentation
This item was deprecated in version 2019r2. Please use Shell.ExitCode as a replacement. |
Property (As Integer )
aShell.ErrorCode = newIntegerValue
or
IntegerValue = aShell.ErrorCode
Supported for all project types and targets.
or
IntegerValue = aShell.ErrorCode
Supported for all project types and targets.
The error code returned by the shell.
Notes
It returns 0 if the Execute method was executed successfully. Otherwise, it returns a system-supplied error code. On Windows, it returns -1 if execution fails.
Example
This example checks the value of error code and prints it if it is not zero.