[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 284
  • Last Modified:

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?
0
amoran
Asked:
amoran
1 Solution
 
hongjunCommented:
try this

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now