Unit 'Variants' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

DynArrayFromVariant

Convert a variant to a dynamic arrayt.

Declaration

Source position: variants.pp line 154

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

VarArrayCreateError

  

Raise an EVariantArrayCreateError error.

VarArrayCreate

  

Create a variant array.

VarArrayOf

  

Create a variants array of a series of values.

DynArrayToVariant

  

Convert a Dynamic Array To a Variant.


Documentation generated on: Dec 24 2024