totc()

Function groupExecute on clientPlatform(s)
ListNOAll

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.

This is a more general version of the tot() function. The expression is totaled for the lines in the specified list.

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
)