RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.StrLComp Function

Compares up to a specified maximum number of characters in two strings.

Pascal
function StrLComp(const Str1: PChar; const Str2: PChar; MaxLen: Cardinal): Integer;
C++
int StrLComp(const const char * Str1, const const char * Str2, unsigned MaxLen);

SysUtils

StrLComp compares Str1 to Str2, up to a maximum length of MaxLen characters. The return value is indicated in the following table:

Return value 
Condition 
<0  
Str1sorts before Str2  
=0  
Str1is the same as Str2  
>0  
Str1 sorts after Str2  

Note: When working with international characters, use AnsiStrLComp instead.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!