RAD Studio VCL Reference
|
Finds the index number of a definition in the Items array from its name.
function IndexOf(const AName: string): Integer;
__fastcall int IndexOf(const AnsiString AName);
Use the IndexOf method to locate the position of a definition in the Items property array. IndexOf returns a value from zero (the first position) to Count - 1. Specify the name of the definition as the Name parameter.
If Items contains no definition with the specified Name, the return value is -1.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|