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.
Haven't found what you were looking for? Use this form to inform us about it.