<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS: Изменение размера многомерного динамического массива.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9390&amp;type=atom" />
	<updated>2014-03-20T17:30:32Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9390</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Изменение размера многомерного динамического массива.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81028#p81028" />
			<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-03-20T17:30:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81028#p81028</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: Изменение размера многомерного динамического массива.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81027#p81027" />
			<content type="html"><![CDATA[<p>Не могу понять как изменить размер многомерного динамического массива?</p><div class="codebox"><pre><code>


Dim Log(),a,b

a=5
b=0

reDim preserve Log(a,b)

Log(0,0) = &quot;Процесс 0&quot; &amp;&quot;0&quot;
Log(1,0) = &quot;Процесс 1&quot; &amp;&quot;0&quot;
Log(2,0) = &quot;Процесс 2&quot; &amp;&quot;0&quot;
Log(3,0) = &quot;Процесс 3&quot; &amp;&quot;0&quot;
Log(4,0) = &quot;Процесс 4&quot; &amp;&quot;0&quot;
Log(5,0) = &quot;Процесс 5&quot; &amp;&quot;0&quot;


For a=0 to 5 step 1
    For b=0 to 0 step 1 
        MsgBox  &quot;1 Часть &quot;&amp;Log(a,b)
    Next
Next

&#039; Как увеличить размерность многомерного массива ? Здесь появляется ошибка когда увеличиваю b.
a=5
b=1
reDim preserve Log(a,b)

Log(0,1) = &quot;Процесс 0&quot; &amp;&quot;1&quot;
Log(1,1) = &quot;Процесс 1&quot; &amp;&quot;1&quot;
Log(2,1) = &quot;Процесс 2&quot; &amp;&quot;1&quot;
Log(3,1) = &quot;Процесс 3&quot; &amp;&quot;1&quot;
Log(4,1) = &quot;Процесс 4&quot; &amp;&quot;1&quot;
Log(5,1) = &quot;Процесс 5&quot; &amp;&quot;1&quot;

For a=0 to 5 step 1
    For b=0 to 1 step 1 
        MsgBox  &quot;2 Часть &quot;&amp;Log(a,b)
    Next
Next
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[wildwolf007]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30994</uri>
			</author>
			<updated>2014-03-20T17:15:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81027#p81027</id>
		</entry>
</feed>
