ASP CompareMode attribute

Definition and usage

The CompareMode property sets or returns the comparison mode of the keys in the Dictionary object.

Syntax:

DictionaryObject.CompareMode[=compare]
parameter description
compare

Optional. Specifies the comparison mode.

The following values can be used:

  • 0 = vbBinaryCompare - binary comparison
  • 1 = vbTextCompare - text comparison
  • 2 = vbDatabaseCompare - comparison of databases

instance

<%
dim d
set d=Server.CreateObject("Scripting.Dictionary")
d.CompareMode=1
d.Add "c","China"
d.Add "i","Italy"
'Метод add снизу будет неудачным
d.Add "I","Ireland" 'Символ 'I' уже существует
%>