Variant[]

Inherits .Array

This class implements a dynamic array of Variant values.

This class is creatable.

DIM hVariantArray AS Variant[]

hVariantArray = NEW Variant[] ( [ Size AS Integer ] )

Create an array of Variant values.

Size specifies the initial size of the array. By default, the array is initially void.

This class acts like an array.

DIM hVariantArray AS Variant[]
DIM aVariant AS Variant

aVariant = hVariantArray [ Index AS Integer ]

Returns a value stored in the array from its index.

DIM hVariantArray AS Variant[]
DIM aVariant AS Variant

hVariantArray [ Index AS Integer ] = aVariant

Modifies the value stored in the array at the specified index.

This class is enumerable with the FOR EACH keyword.

DIM hVariantArray AS Variant[]
DIM aVariant AS Variant

FOR EACH aVariant IN hVariantArray
  ...
NEXT

Enumerates each element stored in the array.

Properties  Methods 
Count  Length    Add  Clear  Copy  Insert  Pop  Push  Remove  Resize  Reverse  Sort