Skip to main content
Skip table of contents

p$TDV:Util:ParSum


p$TDV:Util:ParSum

Sum the array elements of the given array parameter from 1 up to Number. The name of the field parameter is transferred as a string, array elements in the EMPTY state and array elements after the input number are ignored.

Please note: The array name PName is directly assigned (as a string), and is therefore surrounded in quotation marks. Moreover, to ensure data access the parameter has to be global.

Syntax:

Sum = p$TDV:Util:ParSum( PName, Count )

 

Argument

Type

Meaning

 

PName

String

Name of the (one-fold) indexed numerical array
(indexed parameter groups are possible)

 

Number

Integer

Number of the array elements to be summed up (<= the defined maximum index)

Result:

Decimal

Sum of the array elements

Example:

Sum = p$TDV:Util:Sum( 'Prices', 20 )

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.