ASP CompareMode 屬性
完整的 Dictionary 對象參考手冊
CompareMode 屬性設(shè)置或返回在 Dictionary 對象中的比較鍵的比較模式。
語法
DictionaryObject.CompareMode[=compare]
參數(shù) | 描述 |
compare | 可選的。規(guī)定比較模式。 可采用下列值之一: 0 = vbBinaryCompare?-?二進制比較 1 = vbTextCompare - 文本比較 2 = vbDatabaseCompare - 數(shù)據(jù)庫比較 |
實例
<%
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 對象參考手冊
更多建議: