Return
Previous  Next

Description: Returns program execution to the line after the last GoSub command, or returns the value from a user defined function.

     Syntax:
     
Return [<Value>]

Part
Description
<Value>
Required. The value is required only when returning a value from a function. If used without a GoSub command, a stack underrun error will be thrown.

Example:

        GoSub MyLabel
        Print "World"
        End

MyLabel:
        Print "Hello ";
        Return