ProgramExitCode()
Syntax
Result = ProgramExitCode(Program)Description
Returns the exitcode that was returned when the given program ended. The given 'Program' must have been stated before with the RunProgram() command.
This command should only be used after the given program has ended. Use ProgramRunning() or WaitProgram() to make sure of that.
The exitcode allows to return a single value from the program back to the program that executed it. This is usually used to indicate error or success of the program.
To return an exitcode from a PB program, use the optional value with the End statement:End 1 ; returns the exitcode 1
Supported OS
All