StringComparerStatic: TextCompare (get) |
Gets a StringComparer object that provides case-insensitive string comparisons.
Public Property Get TextCompare ( ) As StringComparer
The comparison is done using the Visual Basic StrComp function with vbTextCompare option.
The StringComparer object can be retrieved using the following code.
Dim c As StringComparer Set c = StringComparer.TextCompare
The instance of the StringComparer object returned is a private class and simply implements the StringComparer interface.
Read Only.