System.DynamicArray.High

De RAD Studio API Documentation
Aller à : navigation, rechercher

C++

__property DynArrInt High   = {read=get_high};

Propriétés

Type Visibilité  Source Unité  Parent
property public sysdyn.h System DynamicArray

Description

Indique les limites supérieures du tableau.

La lecture de la propriété High renvoie Length-1.

La fonction suivante renvoie la somme du contenu d'un objet DynamicArray de type entier.

int TotalArray(const DynamicArray<int>& arrayOfInt)

{ int total=0; for (int i=arrayOfInt.Low; i<=arrayOfInt.High; i++) total += arrayOfInt[i]; return total; }

Voir aussi