Export (0) Print
Expand All
Expand Minimize
2 out of 5 rated this helpful - Rate this topic

Converting VBScript's Call Statement


Windows PowerShell


Definition: Transfers control to a Sub or Function procedure.

Call

The Call statement is optional in VBScript: you can call a subroutine or function either by using the Call statement followed by the procedure name or by simply specifying the procedure name. The Call statement is not used at all in Windows PowerShell; instead, you call a function simply by specifying the function name followed by any function parameters. For example, this command calls the function MultiplyNumbers, supplying a pair of parameters (25 and 67):



multiplynumbers 25 67


Return to the VBScript to Windows PowerShell home page

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.