Skip to main content
Skip table of contents

p$TDV:Allg:PGSumme


p$TDV:Allg:PGSumme

Summarize the array elements of a given parameter of a parameter group array 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 PGName 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:Allg:PGSumme ( PGName, Number )

 

Argument

Type

Meaning

 

PGName

String

Name of the numeric parameter of an indexed parameter group.

 

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:Allg:PGSumme( 'PG[1].Prices', 20 )

JavaScript errors detected

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

If this problem persists, please contact our support.