
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <b>call invoke procedure or assembly subroutine</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CALL Invoke Procedure or Assembly Subroutine
CALL procname [(parmlist)]
Transfers control to a subprogram or assembly language subroutine.
procname Specifies a procedure or assembly subroutine defined by a
SUB or SUB INLINE statement elsewhere in the program.
parmlist Specifies one or more parameters to be passed to the
procedure or assembly subroutine. Parameters must be
separated by commas. To pass an entire array as a
parameter, follow the array name with empty parentheses.
--------------------------------------------------------------------------
Notes: For procedures (but not for assembly subroutines), Turbo
Basic returns a compile-time error if the number and type
of parameters passed do not match the formal parameter
list given in the SUB statement.
Parameters given as variables are normally passed by
reference and may be changed by the procedure. To pass a
variable by value instead, enclose it in parentheses.
Entire arrays are always passed by reference, while
expressions and constants are passed by value.
See Also: $INLINE CALL ABSOLUTE CALL INTERRUPT SUB...END SUB
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson