System.Variants.DynArrayToVariant
Delphi
procedure DynArrayToVariant(var V: Variant; const DynArray: Pointer; TypeInfo: Pointer);
C++
extern DELPHI_PACKAGE void __fastcall DynArrayToVariant(System::Variant &V, const void * DynArray, void * TypeInfo);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Variants.pas System.Variants.hpp |
System.Variants | System.Variants |
Description
Creates a Variant array from a dynamic array.
Call DynArrayToVariant to assign the contents of a dynamic array as the value of a Variant variable.
V is the Variant whose value is assigned by DynArrayToVariant.
DynArray is a dynamic array to copy.
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++).