Propiedad del elemento ASP
❮ Referencia completa de objetos de diccionario
La propiedad Item establece o devuelve el valor de un elemento en un objeto Dictionary.
Sintaxis
DictionaryObject.Item(key)[=newitem]
Parameter | Description |
---|---|
key | Required. The key associated with the item |
newitem | Optional. Specifies the value associated with the 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"))
%>
Output:
The value of key pi is: Pink
❮ Referencia completa de objetos de diccionario