title: How to get results of a TQuery en Delphi?
body: <p><strong>DataBase</strong></p>
  
  <p>When I run the following query in a database:</p>
  
  <pre>
  SELECT T.ID
  FROM TABLA T
  WHERE ID=3
  </pre>
  
  <p>Result: </p>
  
  <pre>No rows returned</pre>
  
  <p>Now I try show message in Delphi say "The record not exist".</p>
  
  <p>In the form I have a component TQuery call qValidacion successfully connected with database Oracle 11g.</p>
  
  <p><strong>Try 1</strong></p>
  
  <pre>
  procedure TfPrueba.ButtonAceptarClick(Sender: TObject);
  begin
      qValidacion.Close;
      qValidacion.SQL.Add('SELECT T.ID');
      qValidacion.SQL.Add('FROM TABLA T');
      qValidacion.SQL.Add('WHERE ID=3');
      qValidacion.Open;
      qValidacion.First;
      if (not qValidacion.Eof) then 
          begin
               ShowMessage('The record not exist'); //It Should display the message, but does not show
          end;
      qValidacion.SQL.Clear;
  end;
  </pre>