AMOSi:Gosub

From Amiga Coding
Revision as of 01:50, 17 November 2007 by Spellcoder (talk | contribs) (1 revision(s))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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