RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DBTables.NativeCompareText Function

Compares strings based on a database locale without case sensitivity.

Pascal
function NativeCompareText(Locale: TLocale; const S1: AnsiString; const S2: AnsiString; Len: Integer): Integer;
C++
int NativeCompareText(TLocale Locale, const AnsiString S1, const AnsiString S2, int Len);

NativeCompareText compares up to the first Len characters of S1 to those of S2, without case sensitivity. If the Len parameter is 0, NativeCompareText compares the strings up to their entire length. The compare operation is controlled by the database locale specified as the Locale parameter. NativeCompareText 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!