I cannot figure this out.
I have a string called mmsg. I want to test to see if I have a CRLF as the char and have the code as follows:
mmsg = request.form("message")
for i = 1 to len(mmsg)
if asc(mid(mmsg,i,1)) = 13 then
I keep getting a type mismatch on the line that has the mid(mmsg,i,1) and I know that there is data in mmsg and the len(mmsg) is working correctly because I am able to write out it's contents before I get into the loop.
Any one know why? I am stumped.