Question for vbscript programmer
Posted: November 13th, 2005, 10:33 am
Hi,
I have a quick question for vbscript programmers.
I want to check for a string within a string and I want to check for the expression 's
So if 's is include in the string
I am using this
i = InStr(CStr(s), CStr(token))
s is my string and token is the string i am trying to check if it is inside the string
so can i just do token="'s" or do I need to put a special char before the '
Ex: a Steelcrown harasser's Gouge hits YOU
I wanna see if there is a 's in the string
Thanks.
I have a quick question for vbscript programmers.
I want to check for a string within a string and I want to check for the expression 's
So if 's is include in the string
I am using this
i = InStr(CStr(s), CStr(token))
s is my string and token is the string i am trying to check if it is inside the string
so can i just do token="'s" or do I need to put a special char before the '
Ex: a Steelcrown harasser's Gouge hits YOU
I wanna see if there is a 's in the string
Thanks.