CoreClasses Xojo Plugin

ObjectCollection.Remove Method (console safe)

Use this method to add remove object from the collection by a given object key.

Remove(
   key as Object)

Parameters

key
The object key of the object to remove.

Remarks

Removing object by a key is very inefficient because to remove by a key then a linear search is done internally.

That is the internal hash tables are of no use when removing by key. Try to remove by index whenever possible to get optimal performance.

See Also

ObjectCollection Class