RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.IndexStr Function

IndexStr determines if any of the strings in the array AValues match the string specified by AText using a case sensitive comparison. It returns the zero-based index of the first match in the array, or -1 if no match is found.

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

StrUtils

For a case insensitive comparison, use the IndexText routine. 

 

Commonly Used Long String Routines 

String Types 

String Constants 

IndexText

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!