Sign in Join
FPDoc Onlineexperiment

DynArrayFromVariant procedure

In unit Variants

Convert a variant to a dynamic arrayt.

Declaration

pascal
procedure DynArrayFromVariant(var DynArray: Pointer; const V: Variant; 
 TypeInfo: Pointer)

Arguments

DynArray

Dynamic array to fill with data.

V

Variant to get data from.

TypeInfo

Type information for dynamic array.

Description

DynArrayFromVariant transforms a variant array to a dynamic array. It uses TypInfo to calculate the length, element type and dimension of the array.

The opposite transformation can be performed with DynArrayToVariant.

See also

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