agSum( )
Topic group Related topics Example
Aggregate method that returns the total of a group.
Syntax
<oRef>.agSum(<codeblock>)
<oRef>
The Group object that defines the group you want to summarize.
<codeblock>
A codeblock or pointer to a function that returns the value you want to total.
Property of
Group
Description
Use agSum( ) to calculate the total of the value returned by <codeblock> in the group. <codeblock> is usually an expression codeblock that returns the value property of a field in the rowset of the Group object’s parent StreamSource object.
If <codeblock> returns a null value, it is ignored.
You may call agSum( ) at any time. If necessary, the report engine will look ahead to calculate the result.