instr - crash?

Posted on 2005-04-27
Last Modified: 2012-05-05

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?
Question by:amoran
    LVL 33

    Accepted Solution

    try this

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

    Author Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
    I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now