Programmer Guide/Command Reference/GOSUB: Difference between revisions
From STX Wiki
Jump to navigationJump to search
(Created page with '<code>GOSUB <var>label</var> [<var>arguments</var>]</code> :Call the local subroutine at <var>label</var> label. The call to a subroutine is like starting a macro, but instead of…') |
No edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | |||
GOSUB <var>label</var> [<var>arguments</var>] | |||
Call the local subroutine at <var>label</var> label. The call to a subroutine is like starting a macro, but instead of calling a new macro source code, a copy of the calling macro is created and the execution of the copy is started at label. A subroutine must be finished with the [[Programmer_Guide/Command_Reference/EXIT|EXIT]] command (= return). |
Revision as of 16:32, 23 March 2011
GOSUB label [arguments]
Call the local subroutine at label label. The call to a subroutine is like starting a macro, but instead of calling a new macro source code, a copy of the calling macro is created and the execution of the copy is started at label. A subroutine must be finished with the EXIT command (= return).