totc()

Function group Execute on client Platform(s)
List NO All

Syntax

totc([listname,]expression)

Description

Returns the total of an expression evaluated for a list specified by listname.

If the listname argument is not specified, the current list is used. This function does not work for table based lists. The expression is totaled for the lines in the specified list.

This is a more general version of the tot() function.

Example

; If list lList contains field lCol1, the sum of the squares of all values of lCol1 in the list is:
; note that totc(lList,lCol1) is the same as tot(lList1,lCol1)
Calculate lResult as totc(lList,lCol1*lCol1)