Format
RETURN
Description
Used to return from a GOSUB call.
Example
GOSUB PRINTIT:
END
PRINTIT: PRINT "IT"
RETURN
In the above example, the word "IT" will be printed on the screen. The
RETURN statement causes program execution to resume on the statement
following the corresponding GOSUB statement. In this example, control will
be returned to the END statement.
Comments
Executing a RETURN statement without having first executed a GOSUB
statement could cause unpredictable results.
See Also
|