CoreClasses Xojo Plugin

VariantCollection.Add Method (console safe)

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

Add(
   item as Variant,
   key as String)

Parameters

item
The Variant to add.
key
The string 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

VariantCollection Class