title: Check if startdate is greater then enddate
body: <p>I want to compare two dates. I triied like this:</p>
  
  <pre><code>SetDates(Rec, StartDate2, EndDate2, Regelkorting);
  
  BOMB.RESET;
  BOMB.SETRANGE(StartDate2,StartDate2);
  IF BOMB.FINDFIRST THEN BEGIN
  IF BOMB.StartDate2 &gt; BOMB.EndDate2 THEN BEGIN
  ERROR('startdatum kan niet groter zijn dan einddatum');
  END;
  END
  </code></pre>
  
  <p>But there is no message showing</p>
  
  <p>and this is the output:</p>
  
  <p>BOM Component
  530120,10000,Artikel,530120,Intergas 041107 HREco 24 CW3,ST,0,,,,,0,,0,,01-10-16,10-10-13,0,Nee,Nee,</p>
  
  <p>Thank you</p>