StrComp(string1, string2[, compare])
The compare argument settings are:
Constant | Value | Description |
---|---|---|
BinaryCompare | 0 | Performs a binary comparison, based on a sort order derived from the internal binary representations of the characters. |
TextCompare | 1 | Performs a textual comparison, based on a case-insensitive text sort order. |
The StrComp function has the following return values:
If | StrComp returns |
---|---|
string1 is less than string2 | -1 |
string1 is equal to string2 | 0 |
string1 is greater than string2 | 1 |
CompareMode Property | InStr Function | Option Compare Statement