<< Click to Display Table of Contents >> Call (statement) |
Call Name [(Parameters)]
Or:
Name [Parameters]
Executes the Sub or Function procedure or DLL function with the name Name.
Parameters is a comma-separated list of parameters which can be passed to the procedure.
The keyword Call is usually omitted. If it is used, the parameter list must be enclosed in parentheses, otherwise parentheses may not be used.
Call Name(Parameter1, Parameter2 ...) has therefore the same meaning as Name Parameter1, Parameter2 ...
Functions can also be invoked using the Call statement; however their return value will be lost.
See also: Declare, Function, Sub
Example:
Sub Main
Call Beep
End Sub