Open In App

ASP Dictionary.Remove Method

The ASP Dictionary.Remove Method is used to remove specified key-value pairs from a Dictionary Object. 

Syntax:



DictionaryObject.Remove(key)

Parameter Value:

Example Code: 






<%
dim d,a,i
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "m","mango"
d.Add "z","zebra"
d.Add "c","cat"
  
d.Remove("c")
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
%>

Output:

Key Values
m
z
Article Tags :