Show: Object Pascal C++
Display Preferences

System.AnsiStrings.IndexText

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function IndexText(const AText: AnsiString; const AValues: array of AnsiString): Integer;

C++

extern DELPHI_PACKAGE int __fastcall IndexText(const System::AnsiString AText, System::AnsiString const *AValues, const int AValues_High)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.AnsiStrings.pas
System.AnsiStrings.hpp
System.AnsiStrings System.AnsiStrings

Description

Look for string in string array without case-sensitivity..

IndexText returns the index of a matching string in an array of strings. If the string is not found, the function returns -1.

The string comparison is made without case-sensitivity and is controlled by the current user locale, as for AnsiSameText.

Use IndexStr to search strings with case-sensitivity.

This function is the same as AnsiIndexText.

See Also

Personal tools
Translations