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

Tfields.IndexOf

Return the index of a field instance

Declaration

Source position: db.pas line 1039

public function Tfields.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 retuns 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

TFields.FieldByName

  

Find a field based on its name

TFields.FieldByNumber

  

Search field based on its fieldnumber

TFields.FindField

  

Find a field based on its name

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