<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK:Изменить элемент массива, название которого находится в другом var]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14811&amp;type=atom" />
	<updated>2019-06-01T13:17:25Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14811</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Изменить элемент массива, название которого находится в другом var]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134599#p134599" />
			<content type="html"><![CDATA[<p>Разве что разделить на несколько переменных:<br /></p><div class="codebox"><pre><code>var := [&quot;AAA&quot;]

arrName := &quot;var&quot;
arrKey := 1

%arrName%[arrKey] := &quot;BBB&quot;
MsgBox, % var[1]</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-06-01T13:17:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134599#p134599</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Изменить элемент массива, название которого находится в другом var]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134598#p134598" />
			<content type="html"><![CDATA[<p>Никак.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-06-01T13:13:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134598#p134598</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK:Изменить элемент массива, название которого находится в другом var]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134597#p134597" />
			<content type="html"><![CDATA[<p>Приветствую, форумчане.</p><p>Пример:<br /></p><div class="codebox"><pre><code>
var := [&quot;AAA&quot;]
MsgBox % var[1]
numb = 1
var3 := &quot;var&quot; . &quot;[&quot; numb &quot;]&quot;
MsgBox % var3
%var3% = OOO
MsgBox % var[1]
</code></pre></div><p>Примерно вот такая картина.<br />В своем коде, я достаю название элемента в массиве (var[1] то есть). Название сохраняю в другой переменной (var3) и хочу изменить содержимое элемента массива через другую переменную.<br />Выдает ошибку - illegal character.<br />Как грамотно сделать задуманное?</p>]]></content>
			<author>
				<name><![CDATA[kangar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39404</uri>
			</author>
			<updated>2019-06-01T12:56:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134597#p134597</id>
		</entry>
</feed>
