Skip to main content

Return

Return (Statement)

Format

In the context of a gosub and within a Subroutine:

return

In the context of a Function:

return numeric_expression
return string_expression

Description

The return statement is used with the GOSUB statement to return control to the next statement, within a SUBROUTINE to return control from the subroutine, or with a FUNCTION to return a value to the calling code.

See Also

Begin Case / Case / End Case, Call, Continue Do, Continue For, Continue While, Do / Until, End, Exit Do, Exit For, Exit While, For / Next, For Each / Next, Function, Global, Goto, Gosub, If Then, Pause, Ref, Rem, Return, Subroutine, While / End While

History

0.9.9.1Added to subroutine a function