{
CompareStr example
The following code compares String1, 'STEVE', to String2, 'STEVe'. Note that CompareStr returns a number less than 0 because the value of 'e' is greater than the value of 'E'.
} 
var
  String1, String2 : string;
  I : Integer;
begin
  String1 := 'STEVE';
  String2 := 'Steve';
  I := CompareStr(String1, String2);  { the value of I is < 0 }
  if I <> 0 then
    MessageDlg('The strings are not equal', mtWarning, [mbOK], 0)
end; 
