ASP CompareMode 属性
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
%>