ASP 추가 방법


❮ 완전한 사전 개체 참조

Add 메서드는 Dictionary 개체에 새 키/항목 쌍을 추가합니다.

통사론

DictionaryObject.Add(key,item)

Parameter Description
key Required. The key value associated with the item
item Required. The item 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 gr is: " & d.Item("gr"))
%>

Output:

The value of key gr is: Green

❮ 완전한 사전 개체 참조