ASP ItemPropiedad
Manual de referencia completo del objeto Dictionary
La propiedad Item establece o devuelve el valor de un elemento en el objeto Dictionary.
Sintaxis
DictionaryObject.Item(key)[=newitem]
| Parámetros | Descripción |
|---|---|
| key | Requerido. La key asociada con el item. |
| newitem | Opcional. Especifica el valor asociado con la key. |
Ejemplo
<%
Dim d
Set d=Server.CreateObject("Scripting.Dictionary")
d.Add "re","Red"
d.Add "gr","Green"
d.Add "bl","Blue"
d.Add "pi","Pink"
Response.Write("The value of key pi is: " & d.Item("pi"))
%>
Salida:
The value of key pi is: Pink
Dim d
Set d=Server.CreateObject("Scripting.Dictionary")
d.Add "re","Red"
d.Add "gr","Green"
d.Add "bl","Blue"
d.Add "pi","Pink"
Response.Write("The value of key pi is: " & d.Item("pi"))
%>
Salida:
The value of key pi is: Pink
Manual de referencia completo del objeto Dictionary Otras extensiones