DelphiBasics
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
 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

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




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