ASP RemoveAllメソッド


Dictionary 对象参考手册完全な Dictionary オブジェクトリファレンスマニュアル

RemoveAll メソッドは Dictionary オブジェクトからすべての key/item ペアを削除します。

構文

DictionaryObject.RemoveAll

例

<%
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
%>

出力:

Key values:

(nothing)


Dictionary 对象参考手册完全な Dictionary オブジェクトリファレンスマニュアル その他の拡張