ASP RemoveAllMétodo


Dictionary 对象参考手册Manual de referencia completo del objeto Dictionary

El método RemoveAll elimina todos los pares clave/valor del objeto Dictionary.

Sintaxis

DictionaryObject.RemoveAll

Ejemplo

<%
dim d,a,i
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "n","Norway"
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
%>

Salida:

Key values:

(nothing)


Dictionary 对象参考手册Manual de referencia completo del objeto Dictionary Otras extensiones