In ASP, everything is treated as a varient. Usually when you get a type mismatch it's because your trying to do math on something that contains something other then numbers.
To answer your question, if you cut MND3 to 3, it's still a varient.
If you add 6 to it, it will be treated as an integer. (3+6).
If you concatanate something to it, it will be a character. ("the number is " & 3)
Try displaying all your variables and see if your getting what you expect. Watch for NULLs as they can be a nusiance.
Try breaking up your code into smaller chunks to see how it works and exactly where it's breaking:
Code:
tmp1 = Request("CourseNumber")
response.write tmp1
tmp2 = Len(Request("CourseNumber"))- 3
response.write tmp2
tmp3 = right(tmp1, tmp2)
response.write tmp3
Hope that helps even a little.
Last edited by Anacrusis; 10-20-2004 at 12:14 AM..
|