<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Форум QUIK [тема: Как очистить данные  в setCell]</title>
		<link>http://forum.quik.ru</link>
		<description>Новое в теме Как очистить данные  в setCell форума  на сайте Форум QUIK [forum.quik.ru]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Wed, 20 May 2026 16:56:00 +0300</pubDate>
		<item>
			<title>Как очистить данные  в setCell </title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message46984/topic5552/">Как очистить данные  в setCell </a></b> <i>Как очистить данные  в setCell по условию и как правильно прочитать данные из getClassSecurities(&quot;SPBFUT&quot;),используя getParamEx.На ум приходить только {&quot;RIM0&quot;,&quot;SiM0&quot;}</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			<br />====quote====<br /><a class="blog-p-user-name" id="bp_xUQOH0TH" href="/user/17/" bx-tooltip-user-id="17">Sergey Gorokhov</a> написал:<br /><noindex><a href="/user/1665/" target="_blank" rel="nofollow">psih</a></noindex>, <br />Вы ошибаетесь, функция НЕ добавляет новые столбцы.<br />Она добавляет новые строки.<br />Судя по Вашему изначальному вопросу ровно это Вам и надо, разве нет?<br />=============<br />не совсем))У меня изначально была таблица,из которой я не мог убрать значения,очистить её..Но спасибо за помощь) <br />
			<i>13.07.2020 15:36:36, psih.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message46984/topic5552/</link>
			<guid>http://forum.quik.ru/messages/forum10/message46984/topic5552/</guid>
			<pubDate>Mon, 13 Jul 2020 15:36:36 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Как очистить данные  в setCell </title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message46983/topic5552/">Как очистить данные  в setCell </a></b> <i>Как очистить данные  в setCell по условию и как правильно прочитать данные из getClassSecurities(&quot;SPBFUT&quot;),используя getParamEx.На ум приходить только {&quot;RIM0&quot;,&quot;SiM0&quot;}</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			<a class="blog-p-user-name" id="bp_ZRVhqxYp" href="/user/1665/" bx-tooltip-user-id="1665">psih</a>, <br />Вы ошибаетесь, функция НЕ добавляет новые столбцы.<br />Она добавляет новые строки.<br />Судя по Вашему изначальному вопросу ровно это Вам и надо, разве нет? <br />
			<i>13.07.2020 15:10:49, Sergey Gorokhov.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message46983/topic5552/</link>
			<guid>http://forum.quik.ru/messages/forum10/message46983/topic5552/</guid>
			<pubDate>Mon, 13 Jul 2020 15:10:49 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Как очистить данные  в setCell </title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message46981/topic5552/">Как очистить данные  в setCell </a></b> <i>Как очистить данные  в setCell по условию и как правильно прочитать данные из getClassSecurities(&quot;SPBFUT&quot;),используя getParamEx.На ум приходить только {&quot;RIM0&quot;,&quot;SiM0&quot;}</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			<br />====quote====<br /><a class="blog-p-user-name" id="bp_W4lN9K6H" href="/user/17/" bx-tooltip-user-id="17">Sergey Gorokhov</a> написал:<br />InsertRow(t_id, -1)<br />=============<br />Так он добавляет новые столбцы в таблицу.А надо чтобы он перезаписывал данные.Чем можно воспользоваться??Например делаешь условие и таблица постоянно растёт. <br />
			<i>13.07.2020 15:01:53, psih.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message46981/topic5552/</link>
			<guid>http://forum.quik.ru/messages/forum10/message46981/topic5552/</guid>
			<pubDate>Mon, 13 Jul 2020 15:01:53 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Как очистить данные  в setCell </title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message46361/topic5552/">Как очистить данные  в setCell </a></b> <i>Как очистить данные  в setCell по условию и как правильно прочитать данные из getClassSecurities(&quot;SPBFUT&quot;),используя getParamEx.На ум приходить только {&quot;RIM0&quot;,&quot;SiM0&quot;}</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			InsertRow(t_id, -1) <br />
			<i>18.06.2020 17:20:37, Sergey Gorokhov.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message46361/topic5552/</link>
			<guid>http://forum.quik.ru/messages/forum10/message46361/topic5552/</guid>
			<pubDate>Thu, 18 Jun 2020 17:20:37 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Как очистить данные  в setCell </title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message46360/topic5552/">Как очистить данные  в setCell </a></b> <i>Как очистить данные  в setCell по условию и как правильно прочитать данные из getClassSecurities(&quot;SPBFUT&quot;),используя getParamEx.На ум приходить только {&quot;RIM0&quot;,&quot;SiM0&quot;}</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Здравствуйте!!А такой момент..После использования данного цикла перебора строки,у меня в созданной таблице так и остаётся одна строка,просто инструменты в ней перебираются..А как добавить всю строку с инструментами в таблицу??Чтобы созданная таблица расширялась вниз в зависимости от количества инструментов? <br />
			<i>18.06.2020 17:14:16, psih.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message46360/topic5552/</link>
			<guid>http://forum.quik.ru/messages/forum10/message46360/topic5552/</guid>
			<pubDate>Thu, 18 Jun 2020 17:14:16 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Как очистить данные  в setCell </title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message46299/topic5552/">Как очистить данные  в setCell </a></b> <i>Как очистить данные  в setCell по условию и как правильно прочитать данные из getClassSecurities(&quot;SPBFUT&quot;),используя getParamEx.На ум приходить только {&quot;RIM0&quot;,&quot;SiM0&quot;}</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Спасибо большое,помогли.. <br />
			<i>16.06.2020 14:13:17, psih.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message46299/topic5552/</link>
			<guid>http://forum.quik.ru/messages/forum10/message46299/topic5552/</guid>
			<pubDate>Tue, 16 Jun 2020 14:13:17 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Как очистить данные  в setCell </title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message46298/topic5552/">Как очистить данные  в setCell </a></b> <i>Как очистить данные  в setCell по условию и как правильно прочитать данные из getClassSecurities(&quot;SPBFUT&quot;),используя getParamEx.На ум приходить только {&quot;RIM0&quot;,&quot;SiM0&quot;}</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			<a class="blog-p-user-name" id="bp_TGyK9Jp7" href="/user/1665/" bx-tooltip-user-id="1665">psih</a>, <br /><br />Если вопрос в том как строку разбить по частям и перебрать эти части по очереди, то используйте следующий цикл:<br />
====code====
<pre>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for sec_code in string.gmatch(sec_list, "(&#91;^,&#93;+)") do --перебираем инструменты по очереди.

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end&nbsp;&nbsp;&nbsp;
</pre>
============= <br />
			<i>16.06.2020 14:07:43, Sergey Gorokhov.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message46298/topic5552/</link>
			<guid>http://forum.quik.ru/messages/forum10/message46298/topic5552/</guid>
			<pubDate>Tue, 16 Jun 2020 14:07:43 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Как очистить данные  в setCell </title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message46297/topic5552/">Как очистить данные  в setCell </a></b> <i>Как очистить данные  в setCell по условию и как правильно прочитать данные из getClassSecurities(&quot;SPBFUT&quot;),используя getParamEx.На ум приходить только {&quot;RIM0&quot;,&quot;SiM0&quot;}</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			В идеале,я хочу чтобы полученная строка getClassSecurities подставяла &nbsp;значения класса в таблицу setCell,а которые не проходят по условию,в неё не попадают.Наверное нужно использовать for для этих целей,чтобы каждый инструмент перебирался..Сначала наверное нужно разделить строку getClassSecurities??.Не совсем глубоки познания в языке.. <br />
			<i>16.06.2020 14:01:28, psih.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message46297/topic5552/</link>
			<guid>http://forum.quik.ru/messages/forum10/message46297/topic5552/</guid>
			<pubDate>Tue, 16 Jun 2020 14:01:28 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Как очистить данные  в setCell </title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message46296/topic5552/">Как очистить данные  в setCell </a></b> <i>Как очистить данные  в setCell по условию и как правильно прочитать данные из getClassSecurities(&quot;SPBFUT&quot;),используя getParamEx.На ум приходить только {&quot;RIM0&quot;,&quot;SiM0&quot;}</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Спасибо..Всё получилось..Странно,что раньше так не получалось..Точно пробовал с пустыми кавычками.. <br />
			<i>16.06.2020 13:54:13, psih.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message46296/topic5552/</link>
			<guid>http://forum.quik.ru/messages/forum10/message46296/topic5552/</guid>
			<pubDate>Tue, 16 Jun 2020 13:54:13 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Как очистить данные  в setCell </title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message46295/topic5552/">Как очистить данные  в setCell </a></b> <i>Как очистить данные  в setCell по условию и как правильно прочитать данные из getClassSecurities(&quot;SPBFUT&quot;),используя getParamEx.На ум приходить только {&quot;RIM0&quot;,&quot;SiM0&quot;}</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			<a class="blog-p-user-name" id="bp_6ESoqG2k" href="/user/1665/" bx-tooltip-user-id="1665">psih</a>, <br /><br />Вопрос не понятен.<br />Вы хотите удалить строку в GUI таблице? (тут речь про таблицу которую Вы видите глазами в терминале)<br />Или удалить значение из массива? (тут речь НЕ про визуальную таблицу, а про Lua таблицы table)<br />Или удалить значение из середины строки? (getClassSecurities ведь возвращает строку) <br />
			<i>16.06.2020 13:53:29, Sergey Gorokhov.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message46295/topic5552/</link>
			<guid>http://forum.quik.ru/messages/forum10/message46295/topic5552/</guid>
			<pubDate>Tue, 16 Jun 2020 13:53:29 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Как очистить данные  в setCell </title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message46294/topic5552/">Как очистить данные  в setCell </a></b> <i>Как очистить данные  в setCell по условию и как правильно прочитать данные из getClassSecurities(&quot;SPBFUT&quot;),используя getParamEx.На ум приходить только {&quot;RIM0&quot;,&quot;SiM0&quot;}</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Здравствуйте..Спасибо..Я вроде пытался так сделать,но не получалось..А если я использую массив,могу я удалить,который не проходит по условию,чтобы значения очистились??Например я хочу использовать getClassSecurities,чтобы все инструменты класса проверялись по условию,и ненужные отбраковывались??Как такое можно сделать??И можно ли вообще??Совсем,не против,если посоветуете что почитать или ознакомиться по этой теме)) <br />
			<i>16.06.2020 13:38:01, psih.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message46294/topic5552/</link>
			<guid>http://forum.quik.ru/messages/forum10/message46294/topic5552/</guid>
			<pubDate>Tue, 16 Jun 2020 13:38:01 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Как очистить данные  в setCell </title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message46290/topic5552/">Как очистить данные  в setCell </a></b> <i>Как очистить данные  в setCell по условию и как правильно прочитать данные из getClassSecurities(&quot;SPBFUT&quot;),используя getParamEx.На ум приходить только {&quot;RIM0&quot;,&quot;SiM0&quot;}</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Здравствуйте,<br />Для очистки значения в ячейке, нужно передать ему пустое значение соответствующее типу данных.<br />Для строковых типов, пустым является "", для числовых 0.<br />Пример:<br />	SetCell(t_id, row, 1, "")<br />	SetCell(t_id, row, 2, tostring(""),0) <br />
			<i>16.06.2020 13:24:42, Sergey Gorokhov.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message46290/topic5552/</link>
			<guid>http://forum.quik.ru/messages/forum10/message46290/topic5552/</guid>
			<pubDate>Tue, 16 Jun 2020 13:24:42 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Как очистить данные  в setCell </title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message46174/topic5552/">Как очистить данные  в setCell </a></b> <i>Как очистить данные  в setCell по условию и как правильно прочитать данные из getClassSecurities(&quot;SPBFUT&quot;),используя getParamEx.На ум приходить только {&quot;RIM0&quot;,&quot;SiM0&quot;}</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			IsRun = true<br />class_code=&quot;SPBFUT&quot;<br />sec_list = getClassSecurities(&quot;SPBFUT&quot;)<br /><br /><br />function main()<br /> &nbsp; -- Получает доступный id для создания<br /> &nbsp; t_id = AllocTable() &nbsp; <br /> &nbsp; <br /> &nbsp; -- добавить столбцы<br /> &nbsp; AddColumn(t_id, 1, &quot;Код&quot;, &nbsp; &nbsp; &nbsp; true, QTABLE_STRING_TYPE, 20)<br /> &nbsp; AddColumn(t_id, 2, &quot;BID&quot;, true, QTABLE_DOUBLE_TYPE, &nbsp; 14)<br /> &nbsp; AddColumn(t_id, 3, &quot;ASK&quot;, true, QTABLE_DOUBLE_TYPE, &nbsp; 14)<br /> &nbsp; AddColumn(t_id, 4, &quot;Цена последняя&quot;, true, QTABLE_DOUBLE_TYPE, &nbsp; 14)<br /> &nbsp; AddColumn(t_id, 5, &quot;Время&quot;, true, QTABLE_DOUBLE_TYPE, &nbsp; 14)<br /> &nbsp; AddColumn(t_id, 6, &quot;Разница, р&quot;, &nbsp; true, QTABLE_DOUBLE_TYPE, &nbsp; 14)<br /> &nbsp; AddColumn(t_id, 7, &quot;Разница, %&quot;, &nbsp; true, QTABLE_DOUBLE_TYPE, 14)<br /> <br /> &nbsp; t = CreateWindow(t_id)<br /><br /><br />		 &nbsp; &nbsp;<br /><br /> &nbsp; local rows, columns = GetTableSize (t_id)<br /> &nbsp; InsertRow(t_id, rows) -- добавить новую строку вниз таблицы для &quot;Итого&quot;<br /> &nbsp; <br /> &nbsp; SetWindowCaption(t_id, &quot;Опционы&quot;) <br /><br /> &nbsp; -- исполнять цикл, пока пользователь не остановит скрипт или не закроет окно таблицы<br /> &nbsp; while IsRun do <br /> &nbsp; &nbsp; &nbsp;if IsWindowClosed(t_id)==true then<br /> &nbsp; &nbsp; &nbsp; &nbsp; IsRun=false<br /> &nbsp; &nbsp; &nbsp;end<br /><br /> &nbsp; &nbsp; &nbsp;local currentPrice=0<br />	 &nbsp;local lastPrice=0<br />	 &nbsp;local bid = 0<br />	 &nbsp;local ask = 0<br /> &nbsp; &nbsp; &nbsp;local profitPerc = 0<br /> &nbsp; &nbsp; &nbsp;local currentSecCode= &quot;&quot;<br /> &nbsp; &nbsp; &nbsp;local fullNameOfInstrument = &quot;&quot;<br /> &nbsp; &nbsp; &nbsp;local rowInPortfolioTable = {} &nbsp; &nbsp;-- строка из таблицы &quot;Лимиты по бумагам&quot;<br /> &nbsp; &nbsp; &nbsp;local tableInstrument = {} &nbsp; &nbsp;-- данные &quot;Таблицы текущих торгов&quot;<br /> &nbsp; &nbsp; &nbsp;local iRowInOutTable = 1<br />	 &nbsp;local razn = 0<br />	 &nbsp;local raznPercent = 0<br /> &nbsp; &nbsp; <br />	 <br />	 <br />	 &nbsp; fullNameOfInstrument = (getParamEx(class_code, sec_list, &quot;SHORTNAME&quot;).param_image or &quot;0&quot;) --&quot;LONGNAME&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />	 &nbsp; bid = (getParamEx(class_code, sec_list, &quot;BID&quot;).param_value or 0 )<br />	 &nbsp; ask = (getParamEx(class_code, sec_list, &quot;OFFER&quot;).param_value or 0)<br />	 &nbsp; lastPrice = (getParamEx(class_code, sec_list, &quot;LAST&quot;).param_value)<br />	 &nbsp; timepos = (getParamEx(class_code, sec_list, &quot;TIME&quot;).param_image)<br />	 &nbsp; <br />	 &nbsp; &nbsp;razn = ask - bid &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />	 &nbsp; raznPercent &nbsp; = 100*razn/ ask<br /><br />	 &nbsp; &nbsp;SetCell(t_id, iRowInOutTable, 1, fullNameOfInstrument) -- &quot;Бумага&quot;<br />		SetCell(t_id, iRowInOutTable, 2, tostring(math_round(bid))) -- &quot;Кол-во&quot;RemoveZero(tostring(qtyBoughtLots)))<br />		SetCell(t_id, iRowInOutTable, 3, tostring(math_round(ask))) &nbsp;-- tostring(avgPrice)) &nbsp; -- &quot;Цена покупки&quot;<br />		SetCell(t_id, iRowInOutTable, 4, tostring(math_round(lastPrice))) &nbsp; -- &quot;Цена текущая&quot;<br />		SetCell(t_id, iRowInOutTable, 5, timepos) &nbsp; -- &quot;Цена текущая&quot;<br />		SetCell(t_id, iRowInOutTable, 6, tostring(razn)) -- &quot;Прибыль, %&quot;<br />		SetCell(t_id, iRowInOutTable, 7, tostring(raznPercent) ..&quot;%&quot;) -- &quot;Прибыль, %&quot;<br />			<br />	<br />		<br />			if (raznPercent &gt; 0.5 ) or(raznPercent &lt;-0.5) then<br />			<br />				SetCell(t_id, iRowInOutTable, 1, fullNameOfInstrument==nil) -- &quot;Бумага&quot;<br />				SetCell(t_id, iRowInOutTable, 2, bid==nil) -- &quot;Кол-во&quot;RemoveZero(tostring(qtyBoughtLots)))<br />				SetCell(t_id, iRowInOutTable, 3, ask==nil) &nbsp;-- tostring(avgPrice)) &nbsp; -- &quot;Цена покупки&quot;<br />				SetCell(t_id, iRowInOutTable, 4, lastPrice==nil) &nbsp; -- &quot;Цена текущая&quot;<br />				SetCell(t_id, iRowInOutTable, 5, timepos==nil) &nbsp; -- &quot;Цена текущая&quot;<br />				SetCell(t_id, iRowInOutTable, 6, razn==nil) -- &quot;Прибыль, %&quot;<br />				SetCell(t_id, iRowInOutTable, 7, raznPercent==nil) -- &quot;Прибыль, %&quot;<br />				<br />			<br />			end<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />				if raznPercent &gt; 5 then &nbsp; &nbsp; &nbsp; -- окрашиваем<br />				 &nbsp; ColourRowInGreen(iRowInOutTable)<br />				 &nbsp; <br />				elseif raznPercent&lt;-5 then <br />				 &nbsp;ColourRowInRed(iRowInOutTable) &nbsp; <br />		<br />				else <br />				 &nbsp; ColourRowInYellow(iRowInOutTable)<br />				end &nbsp; <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; iRowInOutTable = iRowInOutTable+1<br /> <br /> &nbsp; &nbsp; sleep(500) -- пауза &nbsp;сек.<br /> &nbsp; &nbsp; end<br />	 --end<br /> &nbsp; --message(&quot;script table portfolio finished&quot;)<br />end<br /><br /><br />function ColourRowInRed(num_row)<br /> &nbsp; SetColor(t_id, num_row, QTABLE_NO_INDEX, RGB(255,150,150), RGB(0,0,0), RGB(255,150,150), RGB(0,0,0))<br />end<br />function ColourRowInYellow(num_row)<br /> &nbsp; SetColor(t_id, num_row, QTABLE_NO_INDEX, RGB(255,255,200), RGB(0,0,0), RGB(255,255,200), RGB(0,0,0))<br />end<br />function ColourRowInGreen(num_row)<br /> &nbsp; SetColor(t_id, num_row, QTABLE_NO_INDEX, RGB(150,255,150), RGB(0,0,0), RGB(150,255,150), RGB(0,0,0))<br />end<br /><br />-- Округляет число до указанной точности<br />function math_round (num, idp)<br /> &nbsp; local mult = 10^(idp or 0)<br /> &nbsp; return math.floor(num * mult + 0.5) / mult<br />end<br />-- удаление точки и нулей после нее<br />function RemoveZero(str)<br /> &nbsp; while (string.sub(str,-1) == &quot;0&quot; and str ~= &quot;0&quot;) do<br /> &nbsp; &nbsp; &nbsp;str = string.sub(str,1,-2)<br /> &nbsp; end<br /> &nbsp; if (string.sub(str,-1) == &quot;.&quot;) then <br /> &nbsp; &nbsp; &nbsp;str = string.sub(str,1,-2)<br /> &nbsp; end &nbsp; <br /> &nbsp; return str<br />end<br />function OnStop()<br /> &nbsp; DestroyTable(t_id)<br /> &nbsp; IsRun = false &nbsp; <br />end <br />
			<i>11.06.2020 17:23:11, psih.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message46174/topic5552/</link>
			<guid>http://forum.quik.ru/messages/forum10/message46174/topic5552/</guid>
			<pubDate>Thu, 11 Jun 2020 17:23:11 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Как очистить данные  в setCell </title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message46173/topic5552/">Как очистить данные  в setCell </a></b> <i>Как очистить данные  в setCell по условию и как правильно прочитать данные из getClassSecurities(&quot;SPBFUT&quot;),используя getParamEx.На ум приходить только {&quot;RIM0&quot;,&quot;SiM0&quot;}</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Вопрос больше пока по первой части..Я создаю таблицу,получаю данные с помощью &nbsp;getParamEx.Пытаюсь сделать условие,что если условие верно,то в таблице отображается инструмент,если нет,то заполнить поля nil.Но когда условие срабатывает я не получаю пустую таблицу..А таблица просто замораживается,пока вновь условие не станет верным.Не знаю как правильно удалить инструмент и очистить таблицу.<br /><img src="https://wampi.ru/image/Rd112y8" alt="Пользователь добавил изображение" border="0" /> <br />
			<i>11.06.2020 17:20:47, psih.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message46173/topic5552/</link>
			<guid>http://forum.quik.ru/messages/forum10/message46173/topic5552/</guid>
			<pubDate>Thu, 11 Jun 2020 17:20:47 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
	</channel>
</rss>
