[thelist] VBScript InStr type mismatch
Chris at globet.com
Chris at globet.com
Wed Jul 13 12:10:30 CDT 2005
Joel
> > The first example looks like you're expecting it to
> evaluate to a
> > boolean expression, which I don't believe is the case in
> VBScript. I
> > can see why this might throw an error.
>
> I think it's the 'boolean vs. string' thing - I removed the
> compare type, and it's working.
It's now working because the "compare" argument requires that the
"start" argument is specified. If you specify both, your code works
fine. Specify neither, and you code works fine.
Check out the MS documentation:
<http://msdn.microsoft.com/library/en-us/script56/html/vsfctInStr.asp?fr
ame=true>
HTH
Regards
Chris Marsh
More information about the thelist
mailing list