Remove
Description
Removes an item from the collection.
Syntax
Sub Remove(key As String)
Parameters
Name |
Data Type |
Description |
Key |
String |
the Key that identifies the value to remove |
Return
None
Example
'create Pentagon DOCS Script Library object
Set scriptLib = GetExtensionObject("PentagonDOCS.Core.ScriptLibrary")
'add key value pairs
Dim newKVP : Set newKVP = scriptLib.NewStringKvP
newKvP.Add "KeyName1","NewValue"
newKvP.Add "KeyName2","NewValue"
newKvP.Add "KeyName3","NewValue"
'remove
newKvP.Remove "KeyName2"