Call Statement
рдкреНрд░реЛрдЧреНрд░рд╛рдо рдХрд╛ рдирд┐рдпрдВрддреНрд░рдг рд╕рдмрд░реВрдЯреАрди, рдлрдВрдХреНрд╢рди рдпрд╛ рдХрд┐рд╕реА рдбреАрдПрд▓рдПрд▓ рдкреНрд░реЛрд╕реАрдЬрд╝рд░ рдкрд░ рд╣рд╕реНрддрд╛рдВрддрд░рд┐рдд рдХрд░рддрд╛ рд╣реИ.
Syntax:
[Call] Name [Parameter]
рдкреИрд░рд╛рдореАрдЯрд░
Name: Name of the subroutine, the function, or the DLL that you want to call
Parameter: Parameters to pass to the procedure. The type and number of parameters is dependent on the routine that is executing.
A keyword is optional when you call a procedure. If a function is executed as an expression, the parameters must be enclosed by brackets in the statement. If a DLL is called, it must first be specified in the Declare-Statement.
рдЙрджрд╛рд╣рд░рдг:
Sub ExampleCall
Dim sVar As String
sVar = "LibreOffice"
Call f_callFun sVar
End Sub
Sub f_callFun (sText as String)
Msgbox sText
End Sub