Futurebasic/Language/Reference/return

< Futurebasic < Language < Reference

Syntax

RETURN

Revised

October 2, 2000 (Release 4)

Description

You should include at least one RETURN statement in every subroutine that is called by a GOSUB statement. RETURN causes the subroutine to "exit"; that is, it causes execution to continue at the statement following the GOSUB that called the subroutine. You may also return to a specific location using RETURN "label". This pops the return address from the stack, then jumps to the requested address.

See Also

GOSUB

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.