CitectVBA Programming Reference > CitectVBA Function Reference > Procedural Statements > Call

Call

The Call Statement transfers control to a Sub procedure, Function procedure, or dynamic-link library (DLL) procedure.

The required ProcedureName is the name of the function or subroutine to call. The optional Parameters is the list of arguments to pass to the called function or subroutine.

You are not required to use the Call statement when calling an CitectVBA subroutine or a DLL function. Parentheses must be used in the argument list if the Call statement is being used.

Syntax

Call ProcedureName[Parameter(s)]

Related Functions

End Function | Sub | End Sub | Exit

Example

Call Beep