NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

CompareMode Property

Sets and returns the comparison mode for comparing string keys in a Dictionary object.

object.CompareMode[ = compare]

Arguments

object
Required. Always the name of a Dictionary object.
compare
Optional. If provided, compare is a value representing the comparison mode used by functions such as StrComp.

Settings

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.

Remarks

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).

See Also

Count Property | Item Property | Key Property

Applies To: Dictionary Object