RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.AnsiMatchStr Function

Determines if string is in string array with case-sensitivity.

Pascal
function AnsiMatchStr(const AText: AnsiString; const AValues: array of AnsiString): Boolean; overload;
C++
Boolean AnsiMatchStr(const AnsiString AText, const array of AnsiString AValues);

AnsiMatchStr returns true if it finds a matching string in an array of strings. If the string is not found, the function returns false.  

The string comparison is made with case-sensitivity and is controlled by the current user locale, as for AnsiSameStr

To make the comparison without case-sensitivity, use AnsiMatchText

 

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