Updated August 2022; see History
CALL <label> ! traditional routine (GOSUB)
CALL <procedure>(<param list>)
CALL <function>(<param list>)
CALL DYNFUNC(<function>,<paramlist>)
The CALL statement may be used to call traditional BASIC subroutines, in which case it is equivalent to GOSUB, as well as to call structured Procedures and User-Defined Functions (including dynamically).
Examples
CALL HELP ! equivalent to GOSUB HELP
call Print'Cus'Addr'Label(CUSTNO, CH) ! procedure
Call Fn'Status'Message$(code) ! function
call DYNFUNC$(func$, code) ! dynamic function
History
2022 August, A-Shell 6.5.1720: The CALL statement can now be used to invoke a dynamic function.