RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.VarIsArray Function

Indicates whether the specified variant is an array.

Pascal
function VarIsArray(const A: Variant): Boolean; overload;
function VarIsArray(const A: Variant; AResolveByRef: Boolean): Boolean; overload;
C++
Boolean VarIsArray(const Variant A);
Boolean VarIsArray(const Variant A, Boolean AResolveByRef);

Variants

VarIsArray returns true if the given variant is an array. Otherwise, the function result is false. 

A is the Variant to check. 

AResolveByRef indicates how VarIsArray should handle the case when A is a reference to a Variant (when the VarType of A is varByRef or varVariant).When AResolveByRef is true, VarIsArray checks whether A is an array or A points to an array. When AResolveByRef is false, VarIsArray returns false when A has a VarType of varByRef or varVariant. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!