Data.DB.TDefCollection.IndexOf
[–] Properties | |
---|---|
Type: function | |
Visibility: public | |
Source: Data.DB.pas Data.DB.hpp
| |
Unit: Data.DB | |
Parent: TDefCollection |
Delphi
function IndexOf(const AName: string): Integer;
C++
int __fastcall IndexOf(const System::UnicodeString AName);
Description
Finds the index number of a definition in the Items array from its name.
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.