[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'db' (#fcl)

TIndexDefs.Find

Find an index by name

Declaration

Source position: db.pas line 957

public function TIndexDefs.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 TDefCollection.Find method to search and return a TIndexDef instance based on the name. The search is case-insensitive and returns Nil if no matching index definition was found.

See also

TIndexDef

  

Index definition

TDefCollection.Find

  

Find an item by name

TIndexDefs.FindIndexForFields

  

Find index definition based on field names

The latest version of this document can be found at lazarus-ccr.sourceforge.net.