Data.DB.TDefCollection.IndexOf

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IndexOf(const AName: string): Integer;

C++

int __fastcall IndexOf(const System::UnicodeString AName);

Properties

Type Visibility Source Unit Parent
function public
Data.DB.pas
Data.DB.hpp
Data.DB TDefCollection

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.

See Also