<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; HTA + VBS : Закрытие окна из процедуры]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10648&amp;type=atom" />
	<updated>2015-05-16T21:07:11Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10648</id>
		<entry>
			<title type="html"><![CDATA[Re: HTA + VBS : Закрытие окна из процедуры]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=93999#p93999" />
			<content type="html"><![CDATA[<p>Простейший эксперимент показал ошибочность моих странных убеждений.<br />Использую Exit Sub<br />Спасибо, тема закрыта.</p>]]></content>
			<author>
				<name><![CDATA[MikeSh]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24507</uri>
			</author>
			<updated>2015-05-16T21:07:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=93999#p93999</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HTA + VBS : Закрытие окна из процедуры]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=93997#p93997" />
			<content type="html"><![CDATA[<p>Я понимаю.<br />Тогда такой вопрос : во втором случае window.close() - закрывает окно и всё прекращается или закрывает окно, а процедура продолжает выполняться? В смысле реально продолжает выполняться, при закрытом окне.<br />Собственно, мой ответ, ничем не подкреплённый, кроме странной убеждённости, window.close() закрывает окно и всё прекращает. Именно из этой странной убеждённости и родился вопрос...</p>]]></content>
			<author>
				<name><![CDATA[MikeSh]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24507</uri>
			</author>
			<updated>2015-05-16T20:57:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=93997#p93997</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HTA + VBS : Закрытие окна из процедуры]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=93993#p93993" />
			<content type="html"><![CDATA[<p>Это две очень разных процедуры. Почувствуйте разницу</p><p>Процедура 1 (сделать что получится только если var &lt;&gt; 0)<br />если var == 0 закрыть окно и завершить работу<br />сделать что-то</p><p>Процедура 2 (сделать что-то получится при любом значении var)<br />если var == 0 закрыть окно<br />сделать что-то</p>]]></content>
			<author>
				<name><![CDATA[Rumata]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24846</uri>
			</author>
			<updated>2015-05-16T16:17:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=93993#p93993</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[HTA + VBS : Закрытие окна из процедуры]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=93988#p93988" />
			<content type="html"><![CDATA[<p>Вопрос пустяковый, больше для эстетики</p><div class="codebox"><pre><code>
Sub Check

  If var = 0 Then
    window.close()
    Exit Sub
  End If

  какой-то текст

End Sub
</code></pre></div><p>или</p><div class="codebox"><pre><code>
Sub Check

  If var = 0 Then
    window.close()
  End If

  какой-то текст

End Sub
</code></pre></div><p>Как правильнее?<br />Во втором случае смущает некая незавершённость Sub, а в первом - бессмысленность Exit...</p>]]></content>
			<author>
				<name><![CDATA[MikeSh]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24507</uri>
			</author>
			<updated>2015-05-15T21:33:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=93988#p93988</id>
		</entry>
</feed>
