The name of the subroutine being called
A comma-delimited list of arguments to pass to the subroutine being called
Passes execution control to a procedure, function, or dynamic-link library (DLL) procedure or function
Use of the
Call keyword is optional.
Regardless of whether the
Call keyword is used,
argumentlist, if it is present, must be
If you use
Call to call a function, the
function’s return value is discarded.
Call myProcedure(True, iMyInt) Sub myProcedure(blnFlag as Boolean, iNumber as Integer) ... End Sub
To pass a whole array to a procedure, use the array name followed by empty parentheses.
Some programmers suggest that code is more readable when the
Call keyword is used to call subroutines.
In VB 6, parentheses had to be omitted if the
keyword was omitted and
more than one argument. In VB.NET, parentheses are required whenever
arguments are present.
In VB 6, if
argumentlist consisted of a
single argument, enclosing it in parentheses and omitting the
Call statement reversed the method by which the
argument was passed to the called function. Thus, an argument
ordinarily called by value would be called by reference, and vice
versa. In VB.NET, this confusing behavior is not supported.
In VB 6, when calling an external routine ...