Name
Gosub -- call a subroutine / OBSOLETE
Synopsis
Gosub(label)
Function
Attention: This function is part of the Hollywood 1.x library. You should not use it any longer. Please use functions instead of labels.

This function jumps to the subroutine specified by label. The subroutine can call Return() to return to the point from where it was called.

Inputs
label
identifier for a label (defined with Label())
Example
a$="Hello World"
Gosub(PRINTTEXT)
WaitLeftMouse
End

Label(PRINTTEXT)
Print(a$)
Return
The above code prints the text "Hello World" on the screen and waits for the left mouse. Then quits.

Show TOC