Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

returnreturnReturnReturnreturn (算子名称)

名称

returnreturnReturnReturnreturn — Terminate procedure call.

参数签名

return( : : : )

Herror return()

Herror T_return()

void Return()

static void HOperatorSet.Return()

def return() -> None

描述

returnreturnReturnReturnReturnreturn terminates the current procedure call and returns to the calling procedure. Program execution is continued at the next active program line after the procedure call in the calling procedure. If the current procedure is the main procedure, program execution is finished and the program counter jumps to the end of the program. Note that every procedure except the main procedure has to contain at least one reachable returnreturnReturnReturnReturnreturn operator line in order to be able to return from a call to the procedure.

结果

returnreturnReturnReturnReturnreturn always returns 2 ( H_MSG_TRUE) .

模块

Foundation