System.StrUtils.AnsiIndexStr

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

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

C++

extern DELPHI_PACKAGE int __fastcall AnsiIndexStr(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

Fournit l'indice d'une chaîne spécifiée d'un tableau de chaînes.

AnsiIndexStr renvoie l'indice de base 0 de la première chaîne de AValues correspondant à AText en tenant compte de la casse. Si la chaîne spécifiée par AText n'a pas de correspondance exacte dans AValues, AnsiIndexStr renvoie –1.

Voir aussi