ObjectPascal
CompareStr
Obsolete
Compare two strings to see which is greater than the other SysUtils unit
 function CompareStr ( const FirstString, SecondString : string ) : Integer;
Description
The CompareStr function is Obsolete.
 
New code should use the AnsiCompareStr function, which takes into account multi-byte strings, and accented characters.
 
The Integer output is as follows:
 
FirstString < SecondString  : -ve number
FirstString = SecondString  : 0
FirstString > SecondString  : +ve number
Related commands
AnsiCompareStr Compare two strings for equality