LOTUSSCRIPT LANGUAGE


Return statement
Example

Transfers control to the statement following a GoSub or On...GoSub statement.

Syntax

Return

Usage

The GoSub and On...GoSub statements transfer control to a labeled statement within a procedure. Execution continues from this statement until a Return statement is encountered. LotusScript then transfers control to the first statement following the GoSub or On...GoSub statement. While executing the procedure, LotusScript can encounter a statement, such as Exit or GoTo, that forces an early exit from the procedure; in this case, the Return is not executed.

The GoSub or On...GoSub statement, its labels, and the Return statement must reside in the same procedure.

Example
See Also