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() function.
This function should only be used after the given program has ended. Use ProgramRunning() or WaitProgram() to make sure of that.
The exitcode allows for a single value to be returned from the program, back to the program that executed it. This is usually used to indicate either the error or the 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