Name
Goto -- jump to a new location / OBSOLETE
Synopsis
Goto(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 location specified by label. Execution will continue there and it is not possible to get back to the point from where the label was called. If you need this, use the Gosub() command.

Inputs
label
identifier of a label (defined with Label())
Example
a$="Hello World"
Goto(PRINTTEXT)
WaitLeftMouse         ; this code will never be reached
End                   ; !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

Show TOC