PickBASIC / FlashBASIC

gosub statement

.md

The gosub statement transfers control to a local subroutine identified by a statement label within the program. Control returns to the next statement after the gosub statement when the return statement is encountered.

Syntax

gosub statement.label{:}

Parameter(s)

statement.label Identifies the local subroutine to which control is transferred.

Example(s)

Call an internal subroutine

gosub greet
stop
greet:
print "hi"   ;* hi
return

See also

Referenced by