Procedures can be called with parameters in the two ways shown below. Note how the Call statement requires parentheses.
Call aProcedure (parameterOne, parameterTwo) aProcedure parameterOne, parameterTwo
Procedure parameters are used as shown below.
<HEAD> <SCRIPT LANGUAGE="VBScript"> <!-- Sub Info (var1, var2, var3) document.write var1 & "<BR>" & var2 & "<BR>" & var3 End Sub --> </SCRIPT> </HEAD> <BODY> <SCRIPT LANGUAGE="VBScript"> <!-- Call Info ( "This is line one", "... this is line two", "... and this is line three") Call Info ( "<BR>", "... and this is line four", "... and this is line five") --> </SCRIPT>