AMOSi:Gosub

From Amiga Coding
Revision as of 02:45, 17 November 2007 by Spellcoder (talk | contribs) (Extracted from the AMOSPro V2.00 helpfile)
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