[Next] [Up] [Previous]

The RETSUB Statement

The RETSUB statement has the form


and transfers control to the statement after the last GOSUB statement (or equivalent: JUMPSUB or control statement with a -linenumber alternative) executed, popping that address off the GOSUB stack.

This statement will not cause a transfer of control between different programs; each subroutine is identified on the GOSUB/RETSUB stack to prevent this.

[Next] [Up] [Previous]