RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAggregates.IndexOf Method

Returns the index of the TAggregate object with a specified name.

Pascal
function IndexOf(const DisplayName: string): Integer;
C++
__fastcall int IndexOf(const AnsiString DisplayName);

Call IndexOf to obtain the index of a specified TAggregate object in the Items property array. The DisplayName parameter specifies the value of the aggregate's AggregateName property. If there is no aggregate with the specified name in the Items property array, IndexOf returns -1. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!