Using parentheses to enclose parameters passed to a procedure or function

August 1, 2010

A function is a routine that returns a value when it executes. A procedure is a routine that does not return a value. In VBScript, there is a syntax difference between calling a procedure and function.

When calling a procedure with parameters, the parameters cannot be enclosed in parentheses.

When calling a function with parameters, the parameters cannot be enclosed in parentheses if the return value is not processed. Otherwise, the parameters must be enclosed in parentheses.

Bulb, icon

Tip:

Haven't found what you were looking for? Use this form to inform us about it.

Related links


Example projects

Technical articles

Video tutorials

Try the Reliance SCADA system right now!

Try the Reliance SCADA/HMI system on several sample visualizations.

Try the Reliance SCADA/HMI system on several sample visualizations or download the trial version installer to your computer for free.

Try the Reliance SCADA system right now Try the Reliance SCADA system right now Try the Reliance SCADA system right now