How to find a sub string

  • Thread starter Thread starter YD
  • Start date Start date
Y

YD

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.
 
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.
 
Back
Top