Sign in Join
FPDoc Onlineexperiment

TFields.IndexOf function

Member of TFieldspublicIn unit DB

Return the index of a field instance.

Declaration

pascal
function IndexOf(Field: TField): LongInt

Arguments

Field

Field instance to search for.

Function result

Index of Field in the list.

Description

IndexOf scans the list of fields and returns the index of the field instance in the list (it compares actual field instances, not field names). If the field does not appear in the list, -1 is returned.

See also

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