ASP Items Method

Definition and Usage

The Items method returns an array containing all the items of the Dictionary object.

Syntax:

DictionaryObject.Items

Instance

<%
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>Item values:</p>")
a=d.Items
for i=0 to d.Count-1
  Response.Write(a(i))
  Response.Write("<br />")
next
set d=nothing
%>

Output:

Item values:
China
Italy
Sweden