Sign in Join
FPDoc Onlineexperiment

TIndexDefs.Find function

Member of TIndexDefspublicIn unit DB

Find an index by name.

Declaration

pascal
function Find(const IndexName: string): TIndexDef

Arguments

IndexName

Index name to search for.

Function result

TIndexDef instance with name IndexName or Nil.

Description

Find overloads the Find method to search and return a TIndexDef instance based on the name. The search is case-insensitive and raises an exception if no matching index definition was found. Note: TIndexDefs.IndexOf can be used instead if an exception is not desired.

See also

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