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
AnsiCompareStrCompare two strings for equality
 Download this web site as a Windows program.




 
Delphi Programming © Neil Moffatt . All rights reserved.  |  Home Page