gosub Statement

The gosub statement transfers control to a local subroutine identified by a statement label within the program. Control returns to the next statement after the gosub statement when the return statement is encountered.

Syntax

gosub statement.label{:}

Parameter(s)

statement.label

Identifies the local subroutine to which control is transferred.

See Also

return Statement

Statement Labels

subroutine Statement