title: Delphi knows if there's a new row after query refresh
body: <p>I'm running a MySQL table with orders table from E-commerce running on VPS(Centos6). </p>
  
  <p>I'm doing querys on desktop application that notify when there's a new order.
  I have a query (TFDQuery) running at FormCreate event. I'm refreshing this query with a TTimer.</p>
  
  <p>Is there some NATIVE way to know if a new row exists after refresh?</p>
  
  <p>What i'm doing for now? </p>
  
  <p>I'm counting rows number with query.RecordCount; After query on FormCreate, setting it to a public var. At the Timer event I'm doing the same thing but with local var.</p>
  
  <p>-</p>
  
  <pre><code>public   
    a : integer;
   ....
  </code></pre>
  
  <p>FormCreate event after query result:</p>
  
  <pre><code> a := query.RecordCount;
  </code></pre>
  
  <p>Timer event:</p>
  
  <pre><code>var 
    b: Integer;
  begin
    query.Refresh();
    b:=query.RecordCount;
    if (b&gt;a) then
    begin
      //do what i want to do
      a := query.RecordCount; 
    end;
  end;
  </code></pre>
  
  <p>Well, everything works fine. But is this the right way? I've been searching around for a case like mine, but i didn't find anything. </p>
  
  <p>Is there some native way to do it ?</p>
  
  <p>I do have DevExpress components.</p>