princessk1
Programmer
I am trying to call a function but am getting a Type Mismatch error on the line of code that calls the function.
This is part of my code:
<SCRIPT LANGUAGE = "VBSCRIPT">
Function Calculate(ctgy)
..code that does a calculation based on the category passed to it
End Function
</SCRIPT>
<% Calculate("General"
%>
All I am trying to do is pass the string general to the calculate function but I keep getting the type mismatch error. I have also tried passing it without parenthesis - which also gives the same error. I know this must be something really simple but I can't seem to get past it. Thanks in advance.
This is part of my code:
<SCRIPT LANGUAGE = "VBSCRIPT">
Function Calculate(ctgy)
..code that does a calculation based on the category passed to it
End Function
</SCRIPT>
<% Calculate("General"
All I am trying to do is pass the string general to the calculate function but I keep getting the type mismatch error. I have also tried passing it without parenthesis - which also gives the same error. I know this must be something really simple but I can't seem to get past it. Thanks in advance.