StringComparerStatic: OrdinalIgnoreCase (get)

OrdinalIgnoreCase

Gets a StringComparer object that provides case-insensitive string comparisons.



 Public Property Get OrdinalIgnoreCase ( ) As StringComparer

Return Values

StringComparer -  A StringComparer that is case-insensitive.

Remarks

The comparison is done like using the StrComp function to check two VisualBasic strings in a variant culture manner.

The StringComparer object can be retrieved using the following code.

   Dim c As StringComparer
   Set c = StringComparer.OrdinalIgnoreCase
 

The instance of the StringComparer object returned is a private class and simply implements the StringComparer interface.

Read Only.

See Also

Project CorLib Overview

Class StringComparerStatic Overview