Instr function

It’s driving me crazy, here is the code1. dim p

  1. dim w as string

  2. w=“ahahah”

  3. p=instr(w,w,5)

  4. print p

At the line 4 I got msgbox “Type mismatch”

I could swear it worked yesterday. Has anybody experienced the same problem?

Subject: Instr function

Just look it up in designer help one last time, and you’ll know that it didn’t work yesterday for sure. :slight_smile:

Subject: Never Mind

Dang designer help, I do not use the function in this form often.The start parameter is NOT OPTIONAL when compare type is used