[<<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
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson