Macro Command Help

RETURN

 

Macro Command Name

Menu Path

Link to Command Table

RETURN

Access via macro or menu only

Click here

 

Introduction

Transfers control back to the next statement following a GOSUB statement in a macro or menu.

How to use

There may be a number of GOSUB's in the same subroutine, and a RETURN occurring in that subroutine returns control to the statement following the specific GOSUB used to get to the subroutine.

A subroutine should only be entered by using a GOSUB.  Otherwise, the RETURN statement will cause an error when it is executed.