<?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=10038&amp;type=atom" />
	<updated>2014-10-12T18:31:41Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10038</id>
		<entry>
			<title type="html"><![CDATA[Re: HTA + VBS: Остановить выполнение этого сценария]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87289#p87289" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Насколько я понял это язык программирование идет в состав Visual Studio по крайней мере про него там я слышал.</p></blockquote></div><p>Да.</p><div class="quotebox"><blockquote><p>И насколько я понимаю там намного больше возможностей чем у VBScript</p></blockquote></div><p>Да.</p><div class="quotebox"><blockquote><p>тем более идет без компиляции.</p></blockquote></div><p>Нет.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2014-10-12T18:31:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87289#p87289</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HTA + VBS: Остановить выполнение этого сценария]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87288#p87288" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Скажите, а что по поводу скорости обработки&nbsp; у данного метода ?</p></blockquote></div><p>Ничего не скажу. Но Вы можете сравнить.</p><div class="quotebox"><blockquote><p>Необходимо установка дополнительных библиотек</p></blockquote></div><p>Нет. Функционал реализуется библиотекой «mscorlib.dll» из комплекта Microsoft .Net Framework.</p><div class="quotebox"><blockquote><p>и только на Windows Server ?</p></blockquote></div><p>В данном случае слово «сервер» относится к термину «Automation». Сервер Automation реализуется библиотекой .dll или .ocx. Клиент Automation — приложение, скрипт, обращающееся к серверу Automation, посредством создания экземпляра класса.</p><p>Например, библиотека Microsoft Scripting Runtime («scrrun.dll») реализует такие сервера Automation, как «Scripting.FileSystemObject», «Scripting.Dictionary» и «Scripting.Encoder».</p><div class="quotebox"><blockquote><p>Прошу прощения если задаю глупые вопросы просто не слышал о таком еще.</p></blockquote></div><p>Думаю, слышали, но в ином контексте — как об «ActiveX».</p><p>Задавайте, это не страшно, все мы проходили через незнание. Форум для того и предназначен.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2014-10-12T18:28:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87288#p87288</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HTA + VBS: Остановить выполнение этого сценария]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87287#p87287" />
			<content type="html"><![CDATA[<p>Ок, спасибо.</p>]]></content>
			<author>
				<name><![CDATA[wildwolf007]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30994</uri>
			</author>
			<updated>2014-10-12T18:16:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87287#p87287</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HTA + VBS: Остановить выполнение этого сценария]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87286#p87286" />
			<content type="html"><![CDATA[<p><strong>wildwolf007</strong>, достаточно FrameWork-a, так что на каком-нибудь старом XP может не заработать в отличии, скажем, от <a href="http://forum.script-coding.com/viewtopic.php?pid=60269#p60269">Recordset</a> и действует только в поле одномерных массивов.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2014-10-12T18:05:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87286#p87286</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HTA + VBS: Остановить выполнение этого сценария]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87285#p87285" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Вообще-то, не VB, а VB.Net. Но данный класс доступен и как сервер Automation.</p></blockquote></div><p>Необходимо установка дополнительных библиотек и только на Windows Server ? Прошу прощения если задаю глупые вопросы просто не слышал о таком еще.<br />Насколько я понял это язык программирование идет в состав Visual Studio по крайней мере про него там я слышал.</p><p>И насколько я понимаю там намного больше возможностей чем у VBScript тем более идет без компиляции.<br />VBScript&nbsp; большой плюс что можно открыть блокнот и спокойно писать без каких либо компиляций.</p>]]></content>
			<author>
				<name><![CDATA[wildwolf007]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30994</uri>
			</author>
			<updated>2014-10-12T17:46:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87285#p87285</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HTA + VBS: Остановить выполнение этого сценария]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87284#p87284" />
			<content type="html"><![CDATA[<p>Спасибо огромное за вот этот метод:<br /></p><div class="codebox"><pre><code>
Set DataList = CreateObject _
      (&quot;System.Collections.ArrayList&quot;)

DataList.Add &quot;2&quot;
DataList.Add &quot;4&quot;
DataList.Add &quot;6&quot;
DataList.Add &quot;1&quot;
DataList.Add &quot;3&quot;
DataList.Add &quot;5&quot;

DataList.Sort()
&#039;DataList.Reverse()

For Each strItem in DataList
    Wscript.Echo strItem
Next
</code></pre></div><p>Давно искал возможность сотртировки. <br /><strong>Спасибо огромное!</strong></p><p>Скажите, а что по поводу скорости обработки&nbsp; у данного метода ?</p>]]></content>
			<author>
				<name><![CDATA[wildwolf007]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30994</uri>
			</author>
			<updated>2014-10-12T17:44:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87284#p87284</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HTA + VBS: Остановить выполнение этого сценария]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87283#p87283" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>wildwolf007 пишет:</cite><blockquote><p>Как-то так :</p></blockquote></div><p>Да. Метод «.Add()» чем-то не устраивает?</p><div class="quotebox"><cite>wildwolf007 пишет:</cite><blockquote><p>И здесь указывается совершенно другой язык чем ежели VBS указан просто VB</p></blockquote></div><p>Вообще-то, не VB, а VB.Net. Но данный класс доступен и как сервер Automation.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2014-10-12T17:40:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87283#p87283</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HTA + VBS: Остановить выполнение этого сценария]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87282#p87282" />
			<content type="html"><![CDATA[<p>И здесь указывается совершенно другой язык чем ежели VBS указан просто VB</p><p><strong>ArrayList Class (System.Collections)</strong></p><p><a href="http://msdn.microsoft.com/en-us/library/system.collections.arraylist(v=vs.110).aspx">http://msdn.microsoft.com/en-us/library … .110).aspx</a></p>]]></content>
			<author>
				<name><![CDATA[wildwolf007]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30994</uri>
			</author>
			<updated>2014-10-12T17:39:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87282#p87282</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HTA + VBS: Остановить выполнение этого сценария]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87281#p87281" />
			<content type="html"><![CDATA[<p>Просмотрел все 3 справки не могу понять как я могу добавлять в массив данные если заранее не обозначу его размерность?<br />Как-то так :</p><div class="codebox"><pre><code>
Set DataList = CreateObject _
      (&quot;System.Collections.ArrayList&quot;)

DataList.Add &quot;B&quot;
DataList.Add &quot;C&quot;
DataList.Add &quot;E&quot;
DataList.Add &quot;D&quot;
DataList.Add &quot;A&quot;

DataList.Sort()

For Each strItem in DataList
    Wscript.Echo strItem
Next
</code></pre></div><p>Или есть еще варианты ?</p><p>Наверное у меня столько вопросов т.к. еще не научился читать между строк. И до конца не умею разбираться со справочной документацией.</p>]]></content>
			<author>
				<name><![CDATA[wildwolf007]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30994</uri>
			</author>
			<updated>2014-10-12T17:35:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87281#p87281</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HTA + VBS: Остановить выполнение этого сценария]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87280#p87280" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>wildwolf007 пишет:</cite><blockquote><p>Какие еще варианты возможны замены redim если происходит замена размера массива ? И я не знаю какой размер будет у массива?</p></blockquote></div><p>В одной из Ваших предыдущих тем я <a href="http://forum.script-coding.com/viewtopic.php?pid=86976#p86976">приводил пример замены массива</a>.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2014-10-12T17:23:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87280#p87280</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HTA + VBS: Остановить выполнение этого сценария]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87279#p87279" />
			<content type="html"><![CDATA[<p>Какие еще варианты возможны замены redim если происходит замена размера массива ? И я не знаю какой размер будет у массива?</p>]]></content>
			<author>
				<name><![CDATA[wildwolf007]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30994</uri>
			</author>
			<updated>2014-10-12T17:16:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87279#p87279</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HTA + VBS: Остановить выполнение этого сценария]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87270#p87270" />
			<content type="html"><![CDATA[<p>Подобный код:<br /></p><div class="quotebox"><blockquote><div class="codebox"><pre><code>                                    if m = 01 then
                                        mtext = &quot;Январь&quot;
                                    End If
                                    
                                    if m = 02 then
                                        mtext = &quot;Февраль&quot;
                                    End If
…
</code></pre></div></blockquote></div><p>будет нагляднее в таком виде:<br /></p><div class="codebox"><pre><code>mtext = Array(&quot;Январь&quot;, &quot;Февраль&quot;, &quot;Март&quot;, &quot;Апрель&quot;, &quot;Май&quot;, &quot;Июнь&quot;, &quot;Июль&quot;, &quot;Август&quot;, &quot;Сентябрь&quot;, &quot;Октябрь&quot;, &quot;Ноябрь&quot;, &quot;Декабрь&quot;)(m - 1)
</code></pre></div><p>если «m» заведомо не выйдет за пределы диапазона [1..12].</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2014-10-12T15:10:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87270#p87270</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HTA + VBS: Остановить выполнение этого сценария]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87268#p87268" />
			<content type="html"><![CDATA[<p>OFF: <strong>wildwolf007</strong>, продолжаю настоятельно советовать отказаться от использования массивов при нужде многократного «ReDim Preserve». Это <em>дико</em> медленная операция сама по себе, а в случае роста длины массива или её многократного использования превращается в кошмар.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2014-10-12T15:03:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87268#p87268</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HTA + VBS: Остановить выполнение этого сценария]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87263#p87263" />
			<content type="html"><![CDATA[<p>Перестроил работу алгоритма все получилось. Отказался от перезаписи массивов одного и того же содержания, после сортировки. Стал работать с индексами массива.</p>]]></content>
			<author>
				<name><![CDATA[wildwolf007]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30994</uri>
			</author>
			<updated>2014-10-12T12:09:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87263#p87263</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HTA + VBS: Остановить выполнение этого сценария]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87251#p87251" />
			<content type="html"><![CDATA[<p>Немного переделал&nbsp; по факту получается нужно просто пересохранить содержимое из одних массивов в другие массивы</p><div class="codebox"><pre><code>
                        &#039;MsgBox MenuTypeFile1Mask(i).Value &amp;&quot;=&quot; &amp;FileMask1
                        If LCase(MenuTypeFile1Mask(i).Value) = LCase(FileMask1) Then
                            For w = 0 To Ubound(FileMassivMaskPath1) Step 1
                            
                            &#039;MsgBox MenuTypeFile1Mask(i).Value
                            &#039;MsgBox FileMassivMaskPath1(w)
                            
                                If n = &quot;&quot; Then
                                    n = -1
                                    &#039;MsgBox &quot;Назначили N = -1&quot;
                                EnD if
                                
                                n = n + 1
                                reDim preserve FileMassivMaskPath(n)
                                reDim preserve FileMassivMaskName(n)
                                reDim preserve FileMassivMaskDate(n)
                                reDim preserve FileMassivMaskContent(n)
                                reDim preserve FileMassivMaskType(n)
                                
                                FileMassivMaskPath(n) = FileMassivMaskPath1(w)
                                FileMassivMaskName(n) = FileMassivMaskName1(w)
                                FileMassivMaskDate(n) = FileMassivMaskDate1(w)
                                FileMassivMaskContent(n) = FileMassivMaskContent1(w)
                                FileMassivMaskType(n) = FileMassivMaskType1(w)
                                
                                
                                &#039;месяц
                                m = DatePart(&quot;m&quot;, FileMassivMaskDate(n))
                                
                                
                                PovtorDate = 0
                                
                                &#039;Исключение повторов в выводимом списке
                                For c = 0 to Ubound(FileMassivMaskDate) - 1 Step 1
                                
                                    If DatePart(&quot;m&quot;, FileMassivMaskDate(c)) = m Then
                                        PovtorDate = 1
                                    End If
                                
                                Next
                                
                                If PovtorDate = 0 Then
                                
                                    if m = 01 then
                                        mtext = &quot;Январь&quot;
                                    End If
                                    
                                    if m = 02 then
                                        mtext = &quot;Февраль&quot;
                                    End If
                                    
                                    if m = 03 then
                                        mtext = &quot;Март&quot;
                                    End If
                                    
                                    if m = 04 then
                                        mtext = &quot;Апрель&quot;
                                    End If
                                    
                                    if m = 05 then
                                        mtext = &quot;Май&quot;
                                    End If
                                    
                                    if m = 06 then
                                        mtext = &quot;Июнь&quot;
                                    End If
                                    
                                    if m = 07 then
                                        mtext = &quot;Июль&quot;
                                    End If
                                    
                                    if m = 08 then
                                        mtext = &quot;Август&quot;
                                    End If
                                    
                                    if m = 09 then
                                        mtext = &quot;Сентябрь&quot;
                                        
                                    End If
                                    
                                    if m = 10 then
                                        mtext = &quot;Октябрь&quot;
                                    End If
                                    
                                    if m = 11 then
                                        mtext = &quot;Ноябрь&quot;
                                    End If
                                    
                                    if m = 12 then
                                        mtext = &quot;Декабрь&quot;
                                    End If
                                    
                                    
                                    If p = &quot;&quot; Then
                                        p = -1
                                        &#039;MsgBox &quot;Назначили P = -1&quot;
                                    EnD if
                                    
                                    p = p + 1
                                    
                                    reDim preserve MounthChooseText(p)
                                    MounthChooseText(p) = mtext
                                    
                                    reDim preserve MounthChooseValue(p)
                                    MounthChooseValue(p) = m
                                    
                                    
                                End If
                            
                            Next
                        End If
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[wildwolf007]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30994</uri>
			</author>
			<updated>2014-10-12T07:34:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87251#p87251</id>
		</entry>
</feed>
