Derniers tutoriels de développement web
 

ASP articles Méthode


<Complete Dictionnaire Object Reference

La méthode items retourne un tableau de tous les éléments d'un objet Dictionary.

Syntaxe

DictionaryObject.Items

Exemple

<%
dim d,a,i
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "n","Norway"
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:

Norway
Italy
Sweden

<Complete Dictionnaire Object Reference