RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.AnsiIndexStr Function

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

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

StrUtils

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. 

 

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