Syntax

total = REPSUM(tag)

Arguments

total: numeric

tag: database variable

Meaning

Returns the sum of the values from all occurrences of database variable tag. The field doesn't need to be an integer or numerical field per se: it can be a text field as well, but then make sure that the field doesn't contain text other than numbers and that fractional numbers use a dot as the decimal separator, not a comma.

Example

NN[1] = 5
NN[2] = 7.3
NN[3] = 2.05
total = REPSUM(NN)

Result

total is 14.35