Syntax
dictionaryobj.Remove(key)
The Remove() method removes the key, item pair. If no match is found, an error is returned. Nothing is returned from this method.
<html>
<script language="JScript">
<!--
var fruits = new ActiveXObject("Scripting.Dictionary");
fruits.Add("A","AA");
fruits.Add("B","BB");
fruits.Add("G","GG");
fruits.Add("O","OO");
fruits.Remove("B");
theArray = (new VBArray(fruits.Keys())).toArray();
document.write("The array contains:<br>");
for (i in theArray) {
document.write("theArray[",i,"]=",theArray[i],"<br>");
}
-->
</script>
</html>