RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.DynArrayFromVariant Function

Creates a dynamic array from a Variant.

Pascal
procedure DynArrayFromVariant(var DynArray: Pointer; const V: Variant; TypeInfo: Pointer);
C++
DynArrayFromVariant(void * DynArray, const Variant V, void * TypeInfo);

Variants

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++). 

 

DynArrayToVariant 

TypeInfo

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!