ASP 방법


❮ 완전한 사전 개체 참조

Keys 메서드는 Dictionary 객체에 있는 모든 키의 배열을 반환합니다.

통사론

DictionaryObject.Keys

예시

<%
dim d,a,i
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "n","Norway"
d.Add "i","Italy"
d.Add "s","Sweden"

Response.Write("<p>Key values:</p>")
a=d.Keys
for i=0 to d.Count-1
  Response.Write(a(i))
  Response.Write("<br>")
next

set d=nothing
%>

Output:

Key values:

n
i
s

❮ 완전한 사전 개체 참조