ArraySum

Syntax:

%ArraySum(array)%

Description:

Returns the sum of values in an array. If the array parameter value is an empty array, returns zero.

Parameters:

Parameter

Description

array

Specifies the name of an array that was previously defined.

Example:


Dim err As Integer() = {3, 7, 8, 2, 0, 9}

MessageBox.Show(ArraySum(arr))


See Also:

ArrayAvg, ArrayDim, ArrayLen, ArrayMax, ArrayMin, ArraySum, ArrayToList