Wondering if anyone can point out what I may be doing wrong here.
'function code
Function passTwoValues(val1,val2)
Response.write val1
Response.write val2
end function
'call code
passTwoValues("abc","xyz")
I get this response:
Microsoft VBScript compilation (0x800A0414)
Cannot use parentheses when calling a Sub
/intranetredesign/index.asp, line 55, column 22
passTwoValues("abc","xyz")
If I just place in one variable like so:
passTwoValues("abc")
I get:
Wrong number of arguments or invalid property assignment: 'passtwovalues'
I am trying to pass a file name and a URL path, but since the easy code is not working I will wait to try the more complicated.
Thanks in advance,
Bill
'function code
Function passTwoValues(val1,val2)
Response.write val1
Response.write val2
end function
'call code
passTwoValues("abc","xyz")
I get this response:
Microsoft VBScript compilation (0x800A0414)
Cannot use parentheses when calling a Sub
/intranetredesign/index.asp, line 55, column 22
passTwoValues("abc","xyz")
If I just place in one variable like so:
passTwoValues("abc")
I get:
Wrong number of arguments or invalid property assignment: 'passtwovalues'
I am trying to pass a file name and a URL path, but since the easy code is not working I will wait to try the more complicated.
Thanks in advance,
Bill