©
This document uses PHP Chinese website manual Release
CompareMode 属性设置或返回在 Dictionary 对象中的比较键的比较模式。
DictionaryObject.CompareMode[=compare]
参数 | 描述 |
---|---|
compare | 可选的。规定比较模式。 可采用下列值之一: 0 = vbBinaryCompare - 二进制比较1 = vbTextCompare - 文本比较 2 = vbDatabaseCompare - 数据库比较 |
<%
dim d
set d=Server.CreateObject("Scripting.Dictionary")
d.CompareMode=1
d.Add "n","Norway"
d.Add "i","Italy"
'The Add method will fail on the line below!
d.Add "I","Ireland" 'The letter i already exists
%>