Back Previous Next


Linguist basic package - gosub

Syntax:

   gosub to {label}

Keyword handler:

   linguist.basic.keyword.BKGosub.class

Runtime handler(s):

   linguist.basic.handler.BHGosub.class

Function:

Transfer control to a specified label in the current script. When execution encounters a return command, control will resume at the instruction following the gosub.

See also fork and go.

Example(s):

   gosub to GetCharacter


Back Previous Next