RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.AnsiCompareText Function

Compares strings based on the current locale without case sensitivity.

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

SysUtils

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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!