ASP CountPropiedad


Dictionary 对象参考手册Manual de referencia completo del objeto Dictionary

La propiedad Count devuelve el número de pares clave/elemento (key/item) en el objeto Dictionary.

Sintaxis

DictionaryObject.Count

Ejemplo

<%
dim d
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "n","Norway"
d.Add "i","Italy"
d.Add "s","Sweden"
Response.Write("The number of key/item pairs: " & d.Count)
set d=nothing
%>

Salida:

The number of key/item pairs: 3


Dictionary 对象参考手册Manual de referencia completo del objeto Dictionary Otras extensiones