RAD Studio VCL Reference
AnsiStrings.AnsiCompareText Function

Compare two strings without case-sensitivity.

function AnsiCompareText(const S1: AnsiString; const S2: AnsiString): 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 user locale, unlike CompareText. The return value is the same as for CompareStr

To compare strings with case-sensitivity, use AnsiCompareStr


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