ProgramExitCode()
语法
Result = ProgramExitCode(Program)概要
Returns the exitcode that was returned when the given program ended.
参数
Program The program to use. It must have been started before with RunProgram().
返回值
The exitcode that was returned when the specified program ended.
Remarks
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
已支持操作系统
所有