Hi,
I am having trouble passing more than 1 arguement to a procedure. Whenever I try more than 1, I get the following message:
"Cannot use parentheses when calling a Sub"
Any ideas what I am doing wrong? Code is below
Thanks in advance
jan
Working code with 1 arguement:
<script language="vbscript">
<!--
sub Page_init(arg1)
msgbox arg1
end sub
-->
</SCRIPT>
<HEAD>
<META name=GENERATOR Content="Microsft Visual Studion 6.0">
</HEAD>
<BODY BGCOLOR=#c6c6c6 ONLOAD="vbscriptage_Init('a')">
</BODY></HTML>
Here's what I try with 2 arguments but get the error above:
<script language="vbscript">
<!--
sub Page_init(arg1, arg2)
msgbox arg1
msgbox arg2
end sub
-->
</SCRIPT>
<HEAD>
<META name=GENERATOR Content="Microsft Visual Studion 6.0">
</HEAD>
<BODY BGCOLOR=#c6c6c6 ONLOAD="vbscriptage_Init('a','b')">
</BODY></HTML>
I am having trouble passing more than 1 arguement to a procedure. Whenever I try more than 1, I get the following message:
"Cannot use parentheses when calling a Sub"
Any ideas what I am doing wrong? Code is below
Thanks in advance
jan
Working code with 1 arguement:
<script language="vbscript">
<!--
sub Page_init(arg1)
msgbox arg1
end sub
-->
</SCRIPT>
<HEAD>
<META name=GENERATOR Content="Microsft Visual Studion 6.0">
</HEAD>
<BODY BGCOLOR=#c6c6c6 ONLOAD="vbscriptage_Init('a')">
</BODY></HTML>
Here's what I try with 2 arguments but get the error above:
<script language="vbscript">
<!--
sub Page_init(arg1, arg2)
msgbox arg1
msgbox arg2
end sub
-->
</SCRIPT>
<HEAD>
<META name=GENERATOR Content="Microsft Visual Studion 6.0">
</HEAD>
<BODY BGCOLOR=#c6c6c6 ONLOAD="vbscriptage_Init('a','b')">
</BODY></HTML>