Data.DB.TFields.IndexOf

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

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

C++

int __fastcall IndexOf(TField* Field);

Propriétés

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

Description

Recherche l'indice d'un objet champ dans le tableau Fields.

Appelez la méthode IndexOf pour obtenir l'indice d'un champ dans le tableau Fields. Spécifiez le champ comme paramètre Field.

Le premier champ dans le tableau a l'indice 0, le second champ a l'indice 1, etc. Si un champ n'est pas dans le tableau Fields, IndexOf renvoie -1.

Voir aussi