Sign in Join
FPDoc Onlineexperiment

VarArrayOf function

In unit Variants

Create a variants array of a series of values.

Declaration

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

Arguments

Values

Initial values for the elements in the array.

Function result

The newly created variant array.

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.