CoreClasses Xojo Plugin

ObjectCollection.Add Method (console safe)

Use this method to add a object to the collection using string as a key.

Add(
   item as Object,
   key as String)

Parameters

item
The Object to add.
key
The string based key to use for this item.

Remarks

A error code -1 will be generated if the key already existed in the collection, that is if the collection is not in multi-key mode. The error result can be read with the LastError property.

See Also

ObjectCollection Class