ASP 비교 모드 속성
❮ 완전한 사전 개체 참조
CompareMode 속성은 Dictionary 개체의 키를 비교하기 위한 비교 모드를 설정하거나 반환합니다.
통사론
DictionaryObject.CompareMode[=compare]
Parameter | Description |
---|---|
compare | Optional. Specifies the comparison mode. Can take one of the following values: 0 = vbBinaryCompare - binary comparison1 = vbTextCompare - textual comparison 2 = vbDatabaseCompare - database 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
%>
❮ 완전한 사전 개체 참조