System.DynamicArray.Low

De RAD Studio API Documentation
Aller à : navigation, rechercher

C++

__property DynArrInt Low    = {read=get_low};

Propriétés

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

Description

Indique la limite inférieure d'un tableau dynamique.

La propriété Low renvoie toujours 0. 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