Description

Does a cumulative sum of the argument array's values.

Return Type

A McObject object.  

Each value in the returned array is the cumulative signed sum of all of the previous values up to and including the current value of the argument. The Shape of the returned value will be the same as that of the argument. .

Syntax

object.McCumulativeSum (ArrayToSum)

The McCumulativeSum Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McOMGlobal.
ArrayToSumRequired. A Variant value.

May be a scalar or array of any numeric type. It may also be an McObject instance of a numeric type.