System.Variants.DynArrayFromVariant
Delphi
procedure DynArrayFromVariant(var DynArray: Pointer; const V: Variant; TypeInfo: Pointer);
C++
extern DELPHI_PACKAGE void __fastcall DynArrayFromVariant(void * &DynArray, const System::Variant &V, void * TypeInfo);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Variants.pas System.Variants.hpp |
System.Variants | System.Variants |
Description
Creates a dynamic array from a Variant.
Call DynArrayFromVariant to copy the contents of a variant (V) to an existing dynamic array variable (DynArray).
DynArray is a dynamic array variable whose value is assigned from the Variant.
V is the Variant to copy. Its value must be an array.
TypeInfo points to the runtime type information that identifies the type of array elements. You can obtain this pointer using the TypeInfo function (Delphi) or the __delphirtti function (C++).