ASP Items メソッド

定義と使用法

Items メソッドは、Dictionary オブジェクト内のすべてのプロジェクトを含む配列を返します。

文法:

DictionaryObject.Items

インスタンス

<%
dim d,a,i
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "c","China"
d.Add "i","Italy"
d.Add "s","Sweden"
Response.Write("<p>アイテムの値:</p>")
a=d.Items
for i=0 to d.Count-1
  Response.Write(a(i))
  Response.Write("<br />")
次
set d=nothing
%>

出力:

アイテムの値:
中国
イタリア
スウェーデン