RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.VarArrayRef Function

Returns a reference to the specified variant array.

Pascal
function VarArrayRef(const A: Variant): Variant;
C++
Variant VarArrayRef(const Variant A);

Variants

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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!