System.Variants.VarIsArray

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function VarIsArray(const A: Variant): Boolean;
function VarIsArray(const A: Variant; AResolveByRef: Boolean): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall VarIsArray(const System::Variant &A)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.Variants.pas
System.Variants.hpp
System.Variants System.Variants

Description

Indicates whether the specified variant is an array.

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.

See Also