CorString: Compare |
Compares two specified String objects using the specified rules, and returns an integer that indicates their relative position in the sort order.
Public Function Compare( ByRef StrA As String, ByRef StrB As String, Optional ByVal ComparisonType As StringComparison = StringComparison. Ordinal ) As Long
Default: StringComparison . Ordinal
Value | Condition |
---|---|
Less than zero | StrA is less than StrB>. |
Zero | StrA equals StrB. |
Greater than zero | StrA is greater than StrB. |