Dictionary.Remove

From Xojo Documentation

Method

Dictionary.Remove(Key as Variant)

Supported for all project types and targets.

Removes the keyth value-key pair from the Dictionary.

Notes

If Key is not in the Dictionary, it raises a KeyNotFoundException error.

Sample Code

The following code removes the passed entry from the Dictionary:

d.Remove(RGB(255, 0, 0))

Exception err As KeyNotFoundException
MessageBox("You tried to access a nonexistent item!")