Compare two strings to see which is greater than the other SysUtils unit
 function CompareStr ( const FirstString, SecondString : string ) : Integer;
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
 Author links

 Buy Website Traffic at

 Buy Proxies at
 Download this web site as a Windows program.

Delphi Programming Neil Moffatt 2002 - 2016. All rights reserved.  |  Home Page