Data.DB.TDefCollection.IndexOf
Delphi
function IndexOf(const AName: string): Integer;
C++
int __fastcall IndexOf(const System::UnicodeString AName);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | Data.DB.pas Data.DB.hpp |
Data.DB | TDefCollection |
Description
Trouve l'indice d'une définition dans le tableau Items à partir de son nom.
Utilisez la méthode IndexOf pour déterminer la position d'une définition dans la propriété tableau Items. IndexOf renvoie une valeur comprise entre zéro (la première position) et Count - 1. Spécifiez le nom de la définition comme valeur du paramètre Name.
Si Items ne contient pas de définition du Name spécifié, la valeur renvoyée est -1.