RAD Studio VCL Reference
Variants.VarArrayRef Function

Returns a reference to the specified variant array.

function VarArrayRef(const A: Variant): Variant;
Variant VarArrayRef(const Variant A);

Use VarArrayRef to reference a variant array when a referenced variant array is expected in an API call. VarArrayRef creates a new variant array of the same type as A, but with an extra level of indirection if A does not include the varByRef type bit. The returned variant includes the varByRef type bit. 

If A is not an array, VarArrayRef raises an EVariantInvalidArgError exception. 


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