<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум компьютерной помощи &mdash; NotesTimer]]></title>
		<link>https://itpmr.ru/viewtopic.php?id=903</link>
		<atom:link href="https://itpmr.ru/extern.php?action=feed&amp;tid=903&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «NotesTimer».]]></description>
		<lastBuildDate>Tue, 31 Mar 2015 12:26:41 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[NotesTimer]]></title>
			<link>https://itpmr.ru/viewtopic.php?pid=124291#p124291</link>
			<description><![CDATA[<p>Данный пример по таймеру раз в 5 секунд проверяет наличие какого-то файла в папке C:\XML\<br />Если там есть файл - мессаджбокс, таймер выключается.</p><p>Реализация:</p><p>В Globals -&gt; Declarations<br /></p><div class="codebox"><pre><code>Dim nTimer As NotesTimer</code></pre></div><p>В Globals <br /></p><div class="codebox"><pre><code>Sub FileExists(Source As NotesTimer)
    Dim path As String, FName As String 
    path = &quot;C:\XML\*.*&quot;
    FName = Dir$(path, 0) 
    If FName&lt;&gt;&quot;&quot; Then 
        Msgbox FName 
        nTimer.Enabled = False
    End If
End Sub</code></pre></div><p>Кнопка, на клик:<br /></p><div class="codebox"><pre><code>Sub Click(Source As Button)
    Set nTimer = New NotesTimer(5)
    Print &quot;ТАЙМЕР ПОИСКА ФАЙЛОВ В ПАПКЕ ВКЛ&quot;
    On Event Alarm From nTimer Call FileExists
End Sub</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Tue, 31 Mar 2015 12:26:41 +0000</pubDate>
			<guid>https://itpmr.ru/viewtopic.php?pid=124291#p124291</guid>
		</item>
	</channel>
</rss>
