RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.DynArrayToVariant Function

Creates a System::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);

Call DynArrayToVariant to assign the contents of a dynamic array as the value of a System::Variant variable. 

V is the System::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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!