CoreClasses Xojo Plugin

ObjectDictionary.Add Method (console safe)

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

Add(
   item as Object,
   key as Object)

Parameters

item
The Object to add.
key
The object key to use for this item.

Remarks

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

See Also

ObjectDictionary Class