Sign in Join
FPDoc Onlineexperiment

TIndexDefs.GetIndexForFields function

Member of TIndexDefspublicIn unit DB

Get index definition based on field names.

Declaration

pascal
function GetIndexForFields(const Fields: string; 
 CaseInsensitive: Boolean): TIndexDef

Arguments

Fields

Fieldlist to look for.

CaseInsensitive

Look only for a case-insensitive index.

Function result

TIndexDef instance with fieldlist matching Fields or Nil.

Description

GetIndexForFields searches in the list of indexes for an index whose Fields property matches the list of fields in Fields. If CaseInsenstitive is True it only searches for case-sensitive indexes. If it finds an index definition, then it returns the found instance. If it does not find a matching definition, Nil is returned.

See also

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