ASP RemoveAll 메서드

정의와 사용법

RemoveAll 메서드는 Dictionary 객체에서 모든 key/item을 제거합니다.

문법:

DictionaryObject.RemoveAll

实例

<%
dim d,a,i
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "c","China"
d.Add "i","Italy"
d.Add "s","Sweden"
d.RemoveAll
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
%>

출력:

키 값:
(nothing)