Data.DB.TFields.IndexOf

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

int __fastcall IndexOf(TField* Field);

Properties

Type Visibility Source Unit Parent
function public
Data.DB.pas
Data.DB.hpp
Data.DB TFields

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