RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.AnsiSameStr Function

Compare two strings with case-sensitivity.

Pascal
function AnsiSameStr(const S1: AnsiString; const S2: AnsiString): Boolean;
C++
Boolean AnsiSameStr(const AnsiString S1, const AnsiString S2);

AnsiSameStr compares S1 to S2 with case-sensitivity. The compare operation is controlled by the current user locale, unlike SameStr. The return value is true if AnsiCompareStr would have returned 0 and false otherwise. 

Use AnsiSameText to compare strings without case-sensitivity. 

 

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