Skip to content

VarArrayOf

Create a variants array of a series of values

Declaration

Source position: variants.pp line 125

  function VarArrayOf(const Values: Array of Variant) : Variant;

Description

VarArrayOf creates a variant array with elements of type varVariant. The array has as many values as there are elements in Values and the element values are copied from Values.

Errors

If the array cannot be created, an EVariantError exception may be raised.

See also

Name Description
DynArrayToVariant Convert a Dynamic Array To a Variant
VarArrayCreate Create a variant array
VarArrayCreateError Raise an EVariantArrayCreateError error