VariantList

A VariantList variable is a collection of variants.

To create an instance of a VariantList, use the function CreateVariantList. You can use the Append, Remove, and Count functions, which have overloads that accept VariantList as a parameter.

A VariantList can be iterated by foreach and indexed by a numeric index.

This example shows how to create and use a VariantList:

VariantList vl = CreateVariantList();
Append(vl, "some text");
Append(vl, 125.125);
Append(vl, CreateDateTime());
Append(vl, CreateStringList());
Append(vl, CreateVariantList());

foreach (variant v in vl)
{
    DoSomething(v);
}

DoSomething(vl[3]);
DoSomething(vl[2]);