Show: Object Pascal C++
Display Preferences

System.DynamicArray.Low

From Appmethod Libraries
Jump to: navigation, search

C++

__property DynArrInt Low    = {read=get_low};

Properties

Type Visibility Source Unit Parent
property public sysdyn.h System DynamicArray

Description

Indicates the low bound of a dynamic array.

The Low property always returns 0. The following function returns the sum of the contents of an integer type DynamicArray:

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

See Also

Personal tools
Translations