Convert a Dynamic Array To a Variant.
Source position: variants.pp line 153
procedure DynArrayToVariant( |
var V: Variant; |
const DynArray: Pointer; |
TypeInfo: Pointer |
); |
V |
|
Resulting variant array. |
DynArray |
|
Dynamic array to convert. |
TypeInfo |
|
Type information for the array. |
DynArrayToVariant converts the dynamic array DynArray to a variant array V. It uses the type information in TypeInfo to calculate the number of dimensions, array lengths and type of the element. The dynamic array can only contain basic types.
If there is no data, an empty variant will be returned.
The opposite transformation can be performed with DynArrayFromVariant.
|
Raise an EVariantArrayCreateError error. |
|
|
Create a variant array. |
|
|
Create a variants array of a series of values. |
|
|
Convert a variant to a dynamic arrayt. |