<?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=5042&amp;type=atom" />
	<updated>2010-10-15T08:25:56Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5042</id>
		<entry>
			<title type="html"><![CDATA[Re: HTA/VBS: Передача массива в процедуру]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40461#p40461" />
			<content type="html"><![CDATA[<p>Всё гениальное - ПРОСТО !!!<br />Спасибо !!!</p>]]></content>
			<author>
				<name><![CDATA[Евген]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25253</uri>
			</author>
			<updated>2010-10-15T08:25:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40461#p40461</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HTA/VBS: Передача массива в процедуру]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40456#p40456" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Евген пишет:</cite><blockquote><p>... как можно массив объектом передать в процедуру...</p></blockquote></div><p>Пример:<br /></p><div class="codebox"><pre><code>Dim arrTemp
arrTemp = Array(&quot;a&quot;, &quot;b&quot;, &quot;c&quot;)
Call MySub(arrTemp)
WScript.Quit 0

Sub MySub(arrTest())
For Each s In arrTest
    WScript.Echo s
Next
End Sub</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Dmitrii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=13351</uri>
			</author>
			<updated>2010-10-15T07:09:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40456#p40456</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[HTA/VBS: Передача массива в процедуру]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40455#p40455" />
			<content type="html"><![CDATA[<p>Коллеги, помогите с решением, не могу придумать как можно массив объектом передать в процедуру <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /><br />эта HТА&#039;шка рассылает по выбранным адресатам сообщения net send&#039;ом...<br />при нажатии на разные кнопки массив адресатов меняется (забиты заранее) и этот массив хочу передать в процедуру рассылки...</p><div class="codebox"><pre><code>&lt;html&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1251&quot;&gt;
&lt;style type=&quot;text/css&quot;&gt;
*{font-family:tahoma;font-size:10px}
&lt;/style&gt;
&lt;body&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Текст сообщения&lt;br&gt;
&lt;textarea name=&quot;txtmessage&quot; rows=&quot;10&quot; cols=&quot;100&quot;&gt;&lt;/textarea&gt;&lt;br&gt;
&lt;input type=button value=&quot;Разослать начальникам подразделений&quot; style=&quot;width:250px&quot; onclick=&quot;vbscript:call sender(&#039;arrnach&#039;)&quot;&gt;&lt;br&gt;
&lt;input type=button value=&quot;Разослать всем&quot; style=&quot;width:250px&quot; onclick=&quot;vbscript:call sender(&#039;arrall&#039;)&quot;&gt;&lt;br&gt;
&lt;input type=button value=&quot;Разослать кассе&quot; style=&quot;width:250px&quot; onclick=&quot;vbscript:call sender(&#039;arrkassa&#039;)&quot;&gt;&lt;br&gt;
&lt;input type=button value=&quot;Разослать себе&quot; style=&quot;width:250px&quot; onclick=&quot;vbscript:call sender(&#039;arrme&#039;)&quot;&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;input type=button value=&quot;ПРОВЕРКА СВЯЗИ&quot; style=&quot;width:250px&quot; onclick=&quot;vbscript:call proverkasend()&quot;&gt;&lt;br&gt;

&lt;SCRIPT TYPE=&quot;text/vbscript&quot;&gt;
arrnach = Array(&quot;strARM03&quot;,&quot;strARM10&quot;,&quot;strARM12&quot;,&quot;strARM13&quot;,&quot;strARM18&quot;,&quot;strARM20&quot;,&quot;strARM22&quot;,&quot;strARM27&quot;)
arrall = Array(&quot;strARM02&quot;,&quot;strARM03&quot;,&quot;strARM04&quot;,&quot;strARM06&quot;,&quot;strARM07&quot;,&quot;strARM08&quot;,&quot;strARM10&quot;,&quot;strARM12&quot;,&quot;strARM13&quot;,&quot;strARM14&quot;,&quot;strARM15&quot;,&quot;strARM16&quot;,&quot;strARM17&quot;,&quot;strARM18&quot;,&quot;strARM20&quot;,&quot;strARM21&quot;,&quot;strARM22&quot;,&quot;strARM23&quot;,&quot;strARM24&quot;,&quot;strARM26&quot;,&quot;strARM27&quot;,&quot;strARM29&quot;)
arrkassa = Array(&quot;strARM13&quot;,&quot;strARM15&quot;,&quot;strARM16&quot;)
arrme = Array(&quot;strARM12&quot;)

Sub sender(inparr)
Set WshShell = CreateObject(&quot;WScript.Shell&quot;)
For Each strComputer In inparr
stz=&quot;net send &quot; &amp; strComputer &amp; &quot; &quot; &amp; Document.GetElementByID(&quot;txtmessage&quot;).Value
WshShell.Run stz,0,0
Next
End Sub

Sub proverkasend()
Set WshShell = CreateObject(&quot;WScript.Shell&quot;)
Set WshNetwork = CreateObject(&quot;WScript.Network&quot;)
strComputer = WshNetwork.UserDomain
stz=&quot;net send &quot; &amp; strComputer &amp; &quot; &quot; &amp; Document.GetElementByID(&quot;txtmessage&quot;).Value
WshShell.Run stz,0,0
End Sub

&lt;/SCRIPT&gt;

&lt;/body&gt;
&lt;/html&gt;</code></pre></div><p>Сильно не пинайте, это моя вторая HTA&#039;шка</p>]]></content>
			<author>
				<name><![CDATA[Евген]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25253</uri>
			</author>
			<updated>2010-10-15T06:28:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40455#p40455</id>
		</entry>
</feed>
