UniDAC

TAggregates.IndexOf Method

Searches for the index of an element in the collection by its name.

Class

TAggregates

Syntax

function IndexOf(const Name: string; GroupingLevel: integer = - 1): Integer;

Parameters
Name
The name of an aggregate field.
GroupingLevel
The groups of records over which the field's aggregate is calculated.

Remarks

Returns the number of an aggregate field in the collection. If the field is not found, it returns -1.

© 1997-2026 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback