ASP CompareMode 属性
2018-09-27 21:50 更新
ASP CompareMode 属性
完整的 Dictionary 对象参考手册
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
%>
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
%>
完整的 Dictionary 对象参考手册
以上内容是否对您有帮助:
更多建议: