Array_Sum (Reserved Word)
This reserved function that sums a range of elements in the specified dynamic array.
Usage
Array_Sum(ArrayName, BegElementNum, EndElementNum);
Return
Returns the numeric sum of the values in the specified range If the array contains string or boolean (true/false) elements, a 0 is returned.
Returns the numeric sum of the values in the specified range If the array contains string elements, a 0 is returned. If the array contains Boolean (True/False) elements, the number of True elements are returned.
Parameters
Name | Description |
ArrayName | Identifies the source dynamic array containing elements to be summed and is the name given in the array declaration |
BegElementNum | An integer representing the first element in the range of values to be summed |
EndElementNum | An integer representing the last element in the range of values to be summed |
Examples
Value1 will contain the sum of values contained in the specified dynamic array from elements 4 through 10.
Value1 = Array_Sum(MyDynArray, 4, 10);