Unit 'DB' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TFields.IndexOf

Return the index of a field instance.

Declaration

Source position: db.pas line 1364

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 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

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.


Documentation generated on: Nov 22 2024