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 オブジェクトの完全なリファレンスマニュアル その他の拡張