Difference between revisions of "AMOSi:Gosub"
Spellcoder (talk | contribs) m (1 revision(s)) |
Spellcoder (talk | contribs) (Extracted from the AMOSPro V2.00 helpfile) |
(No difference)
|
Revision as of 02:45, 17 November 2007
an example can be found on AMOSPro_Examples:Examples/H-0/Help_3.AMOS
Jumps to subroutine in your program. At the end of your routine you should use a RETURN statement to return to the next instruction after the GOSUB.
Gosub linenumber : Rem jump to subroutine at linenumber
Gosub label : Rem jump to this AMOS Professional label
Gosub expression : Rem jump to resulting label/line