Sign in Join
FPDoc Onlineexperiment

TDefCollection.IndexOf function

Member of TDefCollectionpublicIn unit DB

Find location of item by name.

Declaration

pascal
function IndexOf(const AName: string): LongInt

Arguments

AName

Name to look for. (case insensitive).

Function result

Index of the found item, or -1 if none was found.

Description

IndexOf searches in the collection for an item whose Name property matches AName and returns the index of the item if it finds one. If no item is found, -1 is returned. The search is performed case-insensitive.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.