CoreClasses Xojo Plugin

VariantArray Class (console safe)

VariantArray is a high speed relocatable variant array class.

The variant array is different from Xojo array since a variant array can be inherited, variants can be sorted, items can be swapped, plugins can use it for cross talk, and it has a iterator interface.

This class supports Xojo’s For each syntax when on Xojo 2019r2 or later.

Object
   VariantArray

class VariantArray implements

IVariantAddable

Constructors

VariantArrayThe default constructor for the VariantArray class.
VariantArrayUse this constructor to construct a instance of the array and have influence on the grow rate of the array.

Methods

AddUse this method to add a variant to the array.
AppendUse this method to append a variant to the array.
CombineWithAppends the passed in ObjectArray to the current ObjectArray.
CountUse this function to get the element count from the array.
IndexOfReturns a index of a element in the array.
InsertUse this method to insert a Variant to the array.
ItemUse this setter/getter function to read or write to a item in the array.
MapMaps the variant array to a new array doing translation for each element of the array in a delegate method that is passed in.
Operator_RedimImplements the Redim operator.
Operator_SubscriptImplements operator to read from the array with the ( ) indexer operator.
Operator_SubscriptImplements operator to write to the array with the ( ) indexer operator.
RemoveUse this method to remove a single variant from the array.
RemoveUse this method to remove variants from the array.
ResizeUse this method to resize the array.
SortUse this method to sort the array.
SwapUse this method to swap two Variants in the array.
WalkCalls the given delegate routine for each element in the array.

Delegates

MapVariantArrayDelegate (console safe) A delegate for the Map method on this class.
WalkVariantArrayDelegate (console safe) A delegate for the Walk method on this class.

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