instr - crash?

Hi

I do

response.write "if clause - " & instr(strRedirectTo, "SubmitReturnMenu.asp", 1) & "<br>"


and i get

Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: '[string: "SubmitReturnMenu.asp"]'

any ideas?

it was working until i added the
 , 1
which i thought would ignore case?
amoranAsked:
Who is Participating?
 
hongjunConnect With a Mentor Commented:
try this

response.write "if clause - " & instr(1, strRedirectTo, "SubmitReturnMenu.asp", 1) & "<br>"
0
 
amoranAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.