Lotus Software logo
IBM Lotus Domino Designer 8.5
  Versions 8.5 and 8.5.1






GoSub statement

Transfers control in a procedure to a labeled statement, with an optional return of control.

Syntax

GoSub label

Elements

label

The label of a statement to which you want to transfer control.

Usage

You can't use the GoSub statement at the module level; you can only use it in a procedure. The GoSub statement, its label, and the Return statement must all reside in the same procedure.

When LotusScript encounters a GoSub statement, execution branches to the specified labeled statement and continues until either of two things happen:

See examples

Examples: GoSub statement
Related topics
LotusScript Language Reference: E through H
Labels
GoTo statement
On...GoSub statement
Return statement




Library | Support | Terms of use |

Last updated: Monday, October 5, 2009