RAD Studio VCL Reference
AnsiStrings.AnsiSameText Function

Compare two strings without case-sensitivity.

function AnsiSameText(const S1: AnsiString; const S2: AnsiString): Boolean;
Boolean AnsiSameText(const AnsiString S1, const AnsiString S2);

AnsiSameText compares S1 to S2 without case-sensitivity. The compare operation is controlled by the current user locale, unlike SameText. The return value is true if AnsiCompareText would have returned 0 and false otherwise. 

Use AnsiSameStr to compare strings with case-sensitivity. 


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