Xojo.Core.Dictionary.Remove

From Xojo Documentation

Method

Xojo.Core.Dictionary.Remove(key As Auto)

Supported for all project types and targets.

Removes a single entry with the specified key from the Dictionary, invalidating all iterators that were created from the Dictionary. If there is no entry in the Dictionary for the key, a KeyNotFoundException is raised.

Exceptions

KeyNotFoundException when key is not in the Dictionary.

Sample Code

Remove the entry for the value "Test" in the Dictionary:

d1.Remove("Test")