RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.DynArrayFromVariant Function

Creates a dynamic array from a System::Variant.

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

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 System::Variant

V is the System::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++). 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!