RAD Studio VCL Reference
SysUtils.AnsiCompareText Function

Compares strings based on the current locale without case sensitivity.

function AnsiCompareText(const S1: string; const S2: string): Integer;
int AnsiCompareText(const AnsiString S1, const AnsiString S2);

AnsiCompareText compares S1 to S2, without case sensitivity. The compare operation is controlled by the current locale. AnsiCompareText returns a value less than 0 if S1 < S2, a value greater than 0 if S1 > S2, and returns 0 if S1 = S2. 


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