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

LastErrorUse this property to get the Last error code generated by the collection.

Methods

AddUse this method to add a variant to the collection using object as a key.
AddUse this method to add a variant to the collection using string as a key.
ClearUse this method to clear all items from the collection.
ClearErrorUse this method to clear the last error.
CountUse this function to get the number of items in the collection.
ExistsUse this function to check for existence of a object key in the collection.
ExistsUse this function to check for existence of a string key in the collection.
GetItemKeyUse this function to get a key for a element specified by index.
GetItemObjectKeyUse this function to get a object key for a element specified by index.
GetKeySetUse this method to get a set of elements with the same object key when the collection is in multikey mode.
GetKeySetUse this method to get a set of elements with the same string key when the collection is in multikey mode.
IndexOfReturns a index of a element in the collection.
InsertUse this method to insert a variant to the collection using object as a key to a specific location in the collection.
InsertUse this method to insert a variant to the collection using string as a key to a specific location in the collection.
ItemUse this setter/getter function to get or set element by index.
ItemUse this setter/getter function to get or set element by a object key.
ItemUse this setter/getter function to get or set element by a string key.
Operator_SubscriptImplements operator to read from the collection with the ( ) indexer operator. This variation fetches a item by a integer index.
Operator_SubscriptImplements operator to write to the collection with the ( ) indexer operator. This variation sets a item by a integer index.
Operator_SubscriptImplements operator to read from the collection with the ( ) indexer operator. This variation fetches a item by a object key.
Operator_SubscriptImplements operator to write to the collection with the ( ) indexer operator. This variation sets a item by a object key
Operator_SubscriptImplements operator to read from the collection with the ( ) indexer operator. This variation fetches a item by a string key.
Operator_SubscriptImplements operator to write to the collection with the ( ) indexer operator. This variation sets a item by a string key.
RemoveUse this method to add remove variant from the collection by a given index.
RemoveUse this method to add remove variant from the collection by a given string key.
RemoveUse this method to add remove variant from the collection by a given string key.
SortUse this method to sort the collection.

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit
  • iOS