Data.DB.TFields.IndexOf

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TFields

Delphi

function IndexOf(Field: TField): Integer; inline;

C++

int __fastcall IndexOf(TField* Field);

Description

Finds the index of a field object in the Fields array from the field object.

Call IndexOf to get the index for a field in the Fields array. Specify the field as the Field parameter.

The first field in the array has index 0, the second field has index 1, and so on. If a field is not in the Fields array, IndexOf returns -1.

See Also