System.StrUtils.IndexStr

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function IndexStr(const AText: string; const AValues: array of string): Integer;

C++

extern DELPHI_PACKAGE int __fastcall IndexStr(const System::UnicodeString AText, const System::UnicodeString *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

IndexStr détermine si une des chaînes du tableau AValues correspond à la chaîne spécifiée par AText au moyen d'une comparaison sensible à 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 insensible à la casse, utilisez la routine IndexText.

Voir aussi