当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP CompareMode 属性
The CompareMode property sets or returns the comparison mode for comparing keys in a Dictionary object.
ASP CompareMode属性设置或返回一个比较/对照模式来比较一个字典(Dictionary)对象中的关键词
| DictionaryObject.CompareMode[=compare] |
| Parameter参数 | Description描述 |
|---|---|
| compare | Optional. Specifies the comparison mode. 可选参数。指定比较/对照的模式 Can take one of the following values: 0 = vbBinaryCompare - binary comparison |
<%
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 %> |
评论 (0) All