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, const System::UnicodeString *AValues, const System::NativeInt AValues_High)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.StrUtils.pas System.StrUtils.hpp |
System.StrUtils | System.StrUtils |
Description
IndexText determines if any of the strings in the array AValues match the string specified by AText using a case insensitive comparison. It returns the zero-based index of the first match in the array, or -1 if no match is found.
For a case sensitive comparison, use the IndexStr routine.