1.

How Do I Do A Case-insensitive String Comparison?

Answer»

USE the String.Compare function. Its third parameter is a boolean which SPECIFIES WHETHER case should be ignored or not.

"fred" == "Fred" // false
System.String.Compare( "fred", "Fred", TRUE ) // true

Use the String.Compare function. Its third parameter is a boolean which specifies whether case should be ignored or not.

"fred" == "Fred" // false
System.String.Compare( "fred", "Fred", true ) // true



Discussion

No Comment Found