title: delphi sql count to variable
body: <p>I'm new to this sort of thing. I am doing a school project and need to be able to get a count result from sql to a variable. I am using an ADOQuery to access the database.</p>
  
  <p>The code used for the count is:</p>
  
  <pre><code>qryDatabase.SQL.Text := 'COUNT * FROM tblKandidate';
  </code></pre>
  
  <p>but I don't know how to assign this value to an Integer variable. Pls. try to stick to the basics as I am not very experienced yet.</p>
  
  <p>Thank you, Robin</p>