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.
 
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!

Indexof of which class?
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top