Aggregate method that returns the highest value within a group.

Syntax

<oRef>.agMax(<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 track.

Property of

Group

Description

Use agMax( ) to return the highest 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 agMax( ) at any time. If necessary, the report engine will look ahead to determine the result.