RAD Studio VCL Reference
|
Indicates the low bound of a dynamic array.
property Low: Integer;
__property int Low;
The System::DynamicArray::Low property always returns 0. The following function returns the sum of the contents of an integer type System::DynamicArray.
int TotalArray(const System::DynamicArray<int>& arrayOfInt)
{ int total=0; for (int i=arrayOfInt.Low; i<=arrayOfInt.High; i++) total += arrayOfInt[i]; return total; }
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|