<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[My Visual Database — Adding timer]]></title>
		<link>https://myvisualdatabase.com/forum/viewtopic.php?id=779</link>
		<atom:link href="https://myvisualdatabase.com/forum/extern.php?action=feed&amp;tid=779&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Adding timer.]]></description>
		<lastBuildDate>Sun, 30 Nov 2014 11:12:37 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Adding timer]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=4060#p4060</link>
			<description><![CDATA[<p>Hello,</p><br /><p>I made example for you.<br /></p><div class="codebox"><pre><code>var
   Timer: TTimer;

procedure Form1_OnShow (Sender: string; Action: string);
begin
     Timer := TTimer.Create (nil);
     Timer.OnTimer := @OnTimer;
     Timer.Interval := 600000 ; // value in ms = 10 min
     Timer.Enabled := True;
end;

procedure OnTimer;
var
    s: string;
begin
     s := SQLExecute (&#039;SELECT COUNT(id) FROM employees WHERE lastname = &quot;Smith&quot;&#039;);
     if StrToInt(s) &gt; 0 then ShowMessage(&#039;Record found&#039;);
end;

procedure Form1_OnClose (Sender: string; Action: string);
begin
     Timer.Free;
end; 

begin

end. </code></pre></div><br /><br /><br /><p>Here you can download example project:</p>]]></description>
			<author><![CDATA[null@example.com (DriveSoft)]]></author>
			<pubDate>Sun, 30 Nov 2014 11:12:37 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=4060#p4060</guid>
		</item>
		<item>
			<title><![CDATA[Adding timer]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=4057#p4057</link>
			<description><![CDATA[<p>Hello<br />It appears that it may be possible to add a timer to a form after looking at the &quot;Russian&quot; forum section but not speaking Russian not clear as to what the procedure is to do this.<br />What I had in mind was a script&nbsp; that fired every 10 mins , perform an SQL query and pop up a message if record(s) found&nbsp; -- like a appointment reminder. <br />Any chance of a sample file of&nbsp; the way to achieve this?</p>]]></description>
			<author><![CDATA[null@example.com (TAMCIND)]]></author>
			<pubDate>Sun, 30 Nov 2014 05:32:28 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=4057#p4057</guid>
		</item>
	</channel>
</rss>
