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 |
| 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 ) | ||