JonathanG6SWJ
Programmer
I can successfully pass one variable to a subroutine but if I try 2 or more I get error message "Invalid procedure call or argument"
My Subroutine Code
<%Sub DisplayQuestionNumber(LineColour,QN)
Response.Write ("<tr>")
Response.Write ("<td width=29 align=center valign=middle style='background-color=" & LineColour &"' height=1><font face=Gill Sans>" & QN &" </font></td>")
End Sub
I call the subroutine
<%
LineColour="#AABDFF"
DisplayQuestionNumber(LineColour,22)
%>
Why can't I pass multiple values to subroutine?
Many thanks in advance.
Jonathan
My Subroutine Code
<%Sub DisplayQuestionNumber(LineColour,QN)
Response.Write ("<tr>")
Response.Write ("<td width=29 align=center valign=middle style='background-color=" & LineColour &"' height=1><font face=Gill Sans>" & QN &" </font></td>")
End Sub
I call the subroutine
<%
LineColour="#AABDFF"
DisplayQuestionNumber(LineColour,22)
%>
Why can't I pass multiple values to subroutine?
Many thanks in advance.
Jonathan