Difference between revisions of "AMOSi:Gosub"

From Amiga Coding
Jump to: navigation, search
(Extracted from the AMOSPro V2.00 helpfile)
m (1 revision(s))
 
(No difference)

Latest revision as of 01:50, 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