Name
Dictionary.Remove Method
Syntax
dictionaryobject
.Removekey
-
dictionaryobject
Use: Required
Data Subtype: Dictionary object
A reference to a Dictionary object.
-
key
Use: Required
Data Subtype: String
The key associated with the item to be removed.
Description
Removes both the specified key and its associated data (i.e., its item) from the dictionary.
Rules at a Glance
If key
doesn’t exist, runtime error
32811, “Element not found,” occurs.
Get VBScript in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.