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>キー値:</p>")
a=d.Keys
for i=0 to d.Count-1
  Response.Write(a(i))
  Response.Write("<br />")
次へ
set d=nothing
%>

出力:

キーワード値:
(nothing)