Re: How to find a sub string by Kevin
Kevin
Thu Nov 10 08:19:31 CST 2005
String.IndexOf(System.String)
If you want case-insenitive, convert both the string and search string to
upper or lower case.
--
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
Complex things are made up of
Lots of simple things.
"YD" <yangdong1984@gmail.com> wrote in message
news:u91JYpf5FHA.3760@TK2MSFTNGP14.phx.gbl...
> Hello,
>
> I want to find a function to judge whether a sub string (str2) is in a
> string (str1). It will be much better if it works in case-sensitive mode
> and non-case-sensitive speparately.
>
> Is there a function like this?
>
> Any help on this, is greatly appreciated.
>