ASP 항목 속성


❮ 완전한 사전 개체 참조

Item 속성은 Dictionary 개체의 항목 값을 설정하거나 반환합니다.


통사론

DictionaryObject.Item(key)[=newitem]

Parameter Description
key Required. The key associated with the item
newitem Optional. Specifies the value associated with the key

예시

<%
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

❮ 완전한 사전 개체 참조