RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.DynArrayToVariant Function

Creates a Variant array from a dynamic array.

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

Variants

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

 

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