<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум компьютерной помощи &mdash; NotesTimer]]></title>
	<link rel="self" href="https://itpmr.ru/extern.php?action=feed&amp;tid=903&amp;type=atom" />
	<updated>2015-03-31T12:26:41Z</updated>
	<generator>PunBB</generator>
	<id>https://itpmr.ru/viewtopic.php?id=903</id>
		<entry>
			<title type="html"><![CDATA[NotesTimer]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=124291#p124291" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2015-03-31T12:26:41Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=124291#p124291</id>
		</entry>
</feed>
