ASP Item属性


Dictionary 对象参考手册完全な Dictionary オブジェクト リファレンス マニュアル

Item 属性は、Dictionary オブジェクト内の項目の値を設定または返します。

構文

DictionaryObject.Item(key)[=newitem]

パラメータ 説明
key 必須。item に関連付けられているキー。
newitem 省略可能。key に関連付けられている値を指定します。

例

<%
Dim d
Set d=Server.CreateObject("Scripting.Dictionary")
d.Add "re","Red"
d.Add "gr","Green"
d.Add "bl","Blue"
d.Add "pi","Pink"
Response.Write("The value of key pi is: " & d.Item("pi"))
%>

出力:

The value of key pi is: Pink


Dictionary 对象参考手册完全な Dictionary オブジェクト リファレンス マニュアル その他の拡張