System.StrUtils.IndexText
Delphi
function IndexText(const AText: string; const AValues: array of string): Integer;
C++
extern DELPHI_PACKAGE int __fastcall IndexText(const System::UnicodeString AText, System::UnicodeString const *AValues, const int AValues_High)/* overload */;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | System.StrUtils.pas System.StrUtils.hpp |
System.StrUtils | System.StrUtils |
Description
IndexText détermine si une des chaînes du tableau AValues correspond à la chaîne spécifiée par AText au moyen d'une comparaison insensible à la casse. Elle renvoie l'index à base 0 de la première correspondance dans le tableau, ou -1 si aucune correspondance n'a été trouvée.
Pour une comparaison sensible à la casse, utilisez la routine IndexStr.