System.StrUtils.AnsiIndexStr
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 */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.StrUtils.pas System.StrUtils.hpp |
System.StrUtils | System.StrUtils |
Description
Provides the index of a specified string in an array of strings.
AnsiIndexStr returns the 0-offset index of the first string it finds in AValues that matches AText case-sensitively. If the string specified by AText does not have an exact match in AValues, AnsiIndexStr returns –1.