RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.AnsiIndexText Function

Provides the index of a specified string in an array of strings.

Pascal
function AnsiIndexText(const AText: string; const AValues: array of string): Integer; overload;
C++
int AnsiIndexText(const AnsiString AText, const array of string AValues);

AnsiIndexText returns the 0-offset index of the first string it finds in AValues that matches AText case-insensitively. If the string specified by AText does not have a (possibly case-insensitive) match in AValues, AnsiIndexText returns –1. Comparisons are based on the current system locale. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!