CoreClasses Xojo Plugin

VariantCollection Class (console safe)

VariantCollection is a high speed collection class, that uses hash tables to maximise performance.

Object
   VariantCollection

class VariantCollection

Constructors

VariantCollectionThe default constructor for the VariantCollection class.
VariantCollectionA Constructor to construct a VariantCollection with non distinct keys.

Properties

LastError (console safe) Use this property to get the Last error code generated by the collection.

Methods

Add (console safe) Use this method to add a variant to the collection using object as a key.
Add (console safe) Use this method to add a variant to the collection using string as a key.
Clear (console safe) Use this method to clear all items from the collection.
ClearError (console safe) Use this method to clear the last error.
Count (console safe) Use this function to get the number of items in the collection.
Exists (console safe) Use this function to check for existence of a string key in the collection.
Exists (console safe) Use this function to check for existence of a object key in the collection.
GetItemKey (console safe) Use this function to get a key for a element specified by index.
GetItemObjectKey (console safe) Use this function to get a object key for a element specified by index.
GetKeySet (console safe) Use this method to get a set of elements with the same string key when the collection is in multikey mode.
GetKeySet (console safe) Use this method to get a set of elements with the same object key when the collection is in multikey mode.
IndexOf (console safe) Returns a index of a element in the collection.
Insert (console safe) Use this method to insert a variant to the collection using object as a key to a specific location in the collection.
Insert (console safe) Use this method to insert a variant to the collection using string as a key to a specific location in the collection.
Item (console safe) Use this setter/getter function to get or set element by a string key.
Item (console safe) Use this setter/getter function to get or set element by a object key.
Item (console safe) Use this setter/getter function to get or set element by index.
Operator_Subscript (console safe) Implements operator to read from the collection with the ( ) indexer operator. This variation fetches a item by a string key.
Operator_Subscript (console safe) Implements operator to read from the collection with the ( ) indexer operator. This variation fetches a item by a integer index.
Operator_Subscript (console safe) Implements operator to write to the collection with the ( ) indexer operator. This variation sets a item by a integer index.
Operator_Subscript (console safe) Implements operator to write to the collection with the ( ) indexer operator. This variation sets a item by a object key
Operator_Subscript (console safe) Implements operator to read from the collection with the ( ) indexer operator. This variation fetches a item by a object key.
Operator_Subscript (console safe) Implements operator to write to the collection with the ( ) indexer operator. This variation sets a item by a string key.
Remove (console safe) Use this method to add remove variant from the collection by a given index.
Remove (console safe) Use this method to add remove variant from the collection by a given string key.
Remove (console safe) Use this method to add remove variant from the collection by a given string key.
Sort (console safe) Use this method to sort the collection.

Supported Platforms:

  • MacOS X Carbon
  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM