RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.SumInt Function

Returns the sum of the elements in an integer array.

Pascal
function SumInt(const Data: array of Integer): Integer;
C++
int SumInt(const array of Integer Data);

Sum returns the sum of all the values in the Data array parameter. In C++, the Data_Size parameter specifies the index of the last value in Data (one less than the number of values). 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!