<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS: Вывести по 5 элементов из массива]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12576&amp;type=atom" />
	<updated>2017-03-30T08:53:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12576</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Вывести по 5 элементов из массива]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=114393#p114393" />
			<content type="html"><![CDATA[<p>Да, так намного понятней.</p>]]></content>
			<author>
				<name><![CDATA[929151]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29475</uri>
			</author>
			<updated>2017-03-30T08:53:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=114393#p114393</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Вывести по 5 элементов из массива]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=114390#p114390" />
			<content type="html"><![CDATA[<p><strong>929151</strong><br />Пож-та. Кстати, если заинтересует, можно выхватывать строки из текста группой без конкатенации:<br /></p><div class="codebox"><pre><code>DivNum = 5  &#039; делящее число строк

With New RegExp
	.Global = True : .Pattern = &quot;([^\r]+(\r|$)){1,&quot; &amp; DivNum &amp; &quot;}&quot;
	Set Matches = .Execute(Join(DataList.ToArray, vbCr))
End With
For i = 0 To Matches.Count - 1
	MsgBox Matches(i)
Next</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-03-30T00:31:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=114390#p114390</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Вывести по 5 элементов из массива]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=114389#p114389" />
			<content type="html"><![CDATA[<p>Спасибо! Вы всегда очень выручаете!</p>]]></content>
			<author>
				<name><![CDATA[929151]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29475</uri>
			</author>
			<updated>2017-03-29T23:54:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=114389#p114389</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Вывести по 5 элементов из массива]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=114388#p114388" />
			<content type="html"><![CDATA[<p>Поправил.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-03-29T23:34:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=114388#p114388</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Вывести по 5 элементов из массива]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=114387#p114387" />
			<content type="html"><![CDATA[<p>Спасибо.<br />Можно чтобы оставшиеся (11, 12) тоже выводились?</p>]]></content>
			<author>
				<name><![CDATA[929151]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29475</uri>
			</author>
			<updated>2017-03-29T23:19:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=114387#p114387</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Вывести по 5 элементов из массива]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=114386#p114386" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>For Each Item In DataList
	n = n + 1 :	S = S &amp; vbCr &amp; Item
	If n/5 = CInt(n/5) Or n = DataList.Count Then MsgBox Mid(S, 2) : S = &quot;&quot;
Next</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-03-29T23:08:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=114386#p114386</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: Вывести по 5 элементов из массива]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=114384#p114384" />
			<content type="html"><![CDATA[<p>Подскажите, как такое реализовать.<br />Необходимо выводить последовательно по 5 элементов из массива.<br /></p><div class="codebox"><pre><code>
Set DataList = CreateObject(&quot;System.Collections.ArrayList&quot;)
DataList.Add &quot;1&quot;
DataList.Add &quot;2&quot;
DataList.Add &quot;3&quot;
DataList.Add &quot;4&quot;
DataList.Add &quot;5&quot;
DataList.Add &quot;6&quot;
DataList.Add &quot;7&quot;
DataList.Add &quot;8&quot;
DataList.Add &quot;9&quot;
DataList.Add &quot;10&quot;
DataList.Add &quot;11&quot;
DataList.Add &quot;12&quot;

Wscript.echo join(DataList.ToArray(), vbCrLf)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[929151]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29475</uri>
			</author>
			<updated>2017-03-29T22:48:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=114384#p114384</id>
		</entry>
</feed>
