Vlastnost položky ASP
❮ Vyplňte referenční objekt slovníku
Vlastnost Item nastavuje nebo vrací hodnotu položky v objektu Dictionary.
Syntax
DictionaryObject.Item(key)[=newitem]
Parameter | Description |
---|---|
key | Required. The key associated with the item |
newitem | Optional. Specifies the value associated with the key |
Příklad
<%
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
❮ Vyplňte referenční objekt slovníku