RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.VarArrayHighBound Function

Returns high bound for a dimension in a variant array.

Pascal
function VarArrayHighBound(const A: Variant; Dim: Integer): Integer;
C++
int VarArrayHighBound(const Variant A, int Dim);

Variants

VarArrayHighBound returns the high bound of the given dimension in the given variant array. The Dim parameter should be 1 for the leftmost dimension, 2 for the second leftmost dimension, and so on. An exception is raised if the variant given by A is not an array (EVariantInvalidArgError), or if the dimension specified by Dim does not exist (EVariantBadIndexError). 

 

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