object.CompareMode[ = compare]
The compare argument can have the following values:
Constant | Value | Description |
---|---|---|
UseCompareOption | –1 | Performs a comparison using the setting of the Option Compare statement. |
BinaryCompare | 0 | Performs a binary comparison. |
TextCompare | 1 | Performs a textual comparison. |
An error occurs if you try to change the comparison mode of a Dictionary object that already contains data.
The CompareMode property uses the same values as the compare argument for the StrComp function. Values greater than 2 can be used to refer to comparisons using specific Locale IDs (LCID).
Count Property | Item Property | Key Property
Applies To: Dictionary Object