Any way to make IndexOf case-insensitive?

  • Thread starter Thread starter MattB
  • Start date Start date
M

MattB

SSIA, I don't see a switch or something that might do this but I hope I'm
overlooking it. Any suggestions? Thanks!
 
* "MattB said:
SSIA, I don't see a switch or something that might do this but I hope I'm
overlooking it. Any suggestions? Thanks!

Use 'InStr' instead and specify the 'Compare' parameter.
 
SSIA, I don't see a switch or something that might do this but I hope I'm
overlooking it. Any suggestions? Thanks!

CultureInfo.CurrentCulture.CompareInfo.IndexOf( _
source, value, CompareOptions.IgnoreCase)



Mattias
 
Back
Top