<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Смещение ячеек массива]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=16096</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16096&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Смещение ячеек массива».]]></description>
		<lastBuildDate>Thu, 18 Feb 2021 15:18:24 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Смещение ячеек массива]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146313#p146313</link>
			<description><![CDATA[<p><strong>serzh82saratov</strong><br />Спасибо большое!</p>]]></description>
			<author><![CDATA[null@example.com (aredlook)]]></author>
			<pubDate>Thu, 18 Feb 2021 15:18:24 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146313#p146313</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Смещение ячеек массива]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146284#p146284</link>
			<description><![CDATA[<p>Вашу не запускал, у меня так получилось, если не прибавлять по 5, а просто переставлять числа.<br /></p><div class="codebox"><pre><code>arr := [&quot;LD-20&quot;, &quot;FG-25&quot;, &quot;HN-30&quot;, &quot;JF-35&quot;]

MsgBox % PrintSimpleArray(arr)
arr := RemoveAt(2, arr)
MsgBox % PrintSimpleArray(arr)
Return

RemoveAt(At, arr) {
	If (At &lt; 1 || At &gt; arr.Count())
		Return arr
	for k, v in arr, newarr := []
	{
		If (k &lt; At)
			newarr.Push(v)
		Else If (k &gt; At)
			newarr.Push(StrSplit(v, &quot;-&quot;)[1] &quot;-&quot; StrSplit(arr[k - 1], &quot;-&quot;)[2])
	}
	Return newarr
}

PrintSimpleArray(arr) {
	for k, v in arr
		str .= (v + 0 != &quot;&quot; ? v : &quot;&quot;&quot;&quot; v &quot;&quot;&quot;&quot;) &quot;, &quot; 
	Return &quot;[&quot; RTrim(str, &quot;, &quot;) &quot;]&quot;
} </code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Thu, 18 Feb 2021 04:29:07 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146284#p146284</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Смещение ячеек массива]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146281#p146281</link>
			<description><![CDATA[<p>Вот функция которая вышла. Только кривая очень.<br /></p><div class="codebox"><pre><code>removeinarrayandreplace(array, number) {
	Loop % Array.MaxIndex() {
		RegExMatch(array[number+1], &quot;(.*-)(\d{1,2})&quot;, var)
		array[number+1] := var1 &quot;&quot; var2+5
	}
	array.RemoveAt(number)
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (aredlook)]]></author>
			<pubDate>Wed, 17 Feb 2021 20:11:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146281#p146281</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Смещение ячеек массива]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146280#p146280</link>
			<description><![CDATA[<p>Нужны точные данные что удалить, либо правило - по какому признаку определить.</p>]]></description>
			<author><![CDATA[null@example.com (__Михаил__)]]></author>
			<pubDate>Wed, 17 Feb 2021 20:08:46 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146280#p146280</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Смещение ячеек массива]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146279#p146279</link>
			<description><![CDATA[<p><strong>serzh82saratov</strong><br />Хорошо. Спокойной ночи. Я пока что сам попробую, если выйдет я отпишу.</p>]]></description>
			<author><![CDATA[null@example.com (aredlook)]]></author>
			<pubDate>Wed, 17 Feb 2021 19:58:06 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146279#p146279</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Смещение ячеек массива]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146277#p146277</link>
			<description><![CDATA[<p>Так это совсем другое дело. Встроенных методов для этого нет. Сейчас я не готов вам помочь, я баиньки, может завтра.<br />Вам пока советую почитать правила форума. Предложения начинаются с заглавных, и заканчиваются точкой.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Wed, 17 Feb 2021 19:56:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146277#p146277</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Смещение ячеек массива]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146276#p146276</link>
			<description><![CDATA[<p><strong>serzh82saratov</strong><br />так в том то и дело что HN-30 нужно заменить на HN-25 a JF-35 на 30<br />значения могут быть разные</p>]]></description>
			<author><![CDATA[null@example.com (aredlook)]]></author>
			<pubDate>Wed, 17 Feb 2021 19:45:03 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146276#p146276</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Смещение ячеек массива]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146275#p146275</link>
			<description><![CDATA[<div class="quotebox"><cite>aredlook пишет:</cite><blockquote><p> (примерно)</p></blockquote></div><p>Как же тут поможешь, если у вас что то примерно.<br />Если было [LD-20, FG-25, HN-30, JF-35] то должно стать [LD-20, HN-30, JF-35] а не [LD-20, NH-25,JF-30].</p><div class="codebox"><pre><code>arr := [&quot;LD-20&quot;, &quot;FG-25&quot;, &quot;HN-30&quot;, &quot;JF-35&quot;]
MsgBox % PrintSimpleArray(arr)
arr.RemoveAt(2)
MsgBox % PrintSimpleArray(arr)

PrintSimpleArray(arr) {
	for k, v in arr
		str .= (v + 0 != &quot;&quot; ? v : &quot;&quot;&quot;&quot; v &quot;&quot;&quot;&quot;) &quot;, &quot; 
	Return &quot;[&quot; RTrim(str, &quot;, &quot;) &quot;]&quot;
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Wed, 17 Feb 2021 19:43:05 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146275#p146275</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Смещение ячеек массива]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146274#p146274</link>
			<description><![CDATA[<p>поможете?</p>]]></description>
			<author><![CDATA[null@example.com (aredlook)]]></author>
			<pubDate>Wed, 17 Feb 2021 19:40:16 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146274#p146274</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Смещение ячеек массива]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146272#p146272</link>
			<description><![CDATA[<p><strong>serzh82saratov</strong><br />спасибо!<br />смотрите, данные в массиве у меня такие [LD-20, FG-25, HN-30, JF-35] (примерно)<br />если&nbsp; я удалю допустим 2 ячейку, то должно быть так [LD-20, NH-25,JF-30]</p>]]></description>
			<author><![CDATA[null@example.com (aredlook)]]></author>
			<pubDate>Wed, 17 Feb 2021 19:38:40 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146272#p146272</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Смещение ячеек массива]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146270#p146270</link>
			<description><![CDATA[<p><strong>RemoveAt</strong><br /></p><div class="codebox"><pre><code>arr := [1,2,3,4,5]
MsgBox % PrintSimpleArray(arr)
arr.RemoveAt(2)
MsgBox % PrintSimpleArray(arr)

PrintSimpleArray(arr) {
	for k, v in arr
		str .= v &quot;, &quot; 
	Return &quot;[&quot; RTrim(str, &quot;, &quot;) &quot;]&quot;
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Wed, 17 Feb 2021 19:32:37 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146270#p146270</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Смещение ячеек массива]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146269#p146269</link>
			<description><![CDATA[<p>как сместить все значения массива<br />допустим есть массив [1,2,3,4,5]<br />мне нужно удалить 2, будет [1,3,4,5] <br />или допустим 3 нужно, будет[1,2,4,5] <br />и так далее<br /><strong>помогите, буду очень благодарен!</strong></p>]]></description>
			<author><![CDATA[null@example.com (aredlook)]]></author>
			<pubDate>Wed, 17 Feb 2021 19:28:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146269#p146269</guid>
		</item>
	</channel>
</rss>
