ASP Removeメソッド


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

Remove メソッドは、Dictionary オブジェクトから指定された key/item ペアを削除します。

構文

DictionaryObject.Remove(key)

パラメータ 説明
key 必須です。削除する key/item ペアに関連付けられた key を指定します。

例

<%
dim d,a,i
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "n","Norway"
d.Add "i","Italy"
d.Add "s","Sweden"

d.Remove("n")

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:

i
s


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