UniDAC
Searches for the index of an element in the collection by its name.
TAggregates
function IndexOf(const Name: string; GroupingLevel: integer = - 1): Integer;
Returns the number of an aggregate field in the collection. If the field is not found, it returns -1.