Difference between revisions of "AMOSi:End Proc"

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:51, 17 November 2007

an example can be found on AMOSPro_Tutorial:Tutorials/Procedures_1.AMOS


Marks the END of a PROCedure. Like PROCEDURE, it must occupy its own separate line in your program.


Procedure NAME
: : :   Amos instructions go here
End Proc

You can also return a value from the procedure like so:


Endproc[number]
Endproc[real#]
Endproc[s$]

These values can be subsequently read by your program with PARAM, PARAM#, and PARAM$ respectively.