Πρότυπο ASP Count

Ορισμός και χρήση

Η ιδιότητα Count επιστρέφει τον αριθμό των key/item στο αντικείμενο Dictionary.

Γλώσσα:

DictionaryObject.Count

πρότυπο

<%
dim d
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "c","Κίνα"
d.Add "i","Ιταλία"
d.Add "s","Switzerland"
Response.Write("The number of key/item pairs: " & d.Count)
set d=nothing
%>

Output:

The number of key/item pairs: 3