Метод RemoveAll в ASP

Определение и использование

Метод RemoveAll удаляет все key/item из объекта Dictionary.

Синтаксис:

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>Значения ключей:</p>")
a=d.Keys
for i=0 to d.Count-1
  Response.Write(a(i))
  Response.Write("<br />")
next
set d=nothing
%>

Вывод:

Значения ключей:
(ничего)