<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[QUIK -> DDE &mdash; Помогите разобраться с GetCell и GetValue]]></title>
	<link rel="self" href="https://quik2dde.ru/extern.php?action=feed&amp;tid=56&amp;type=atom" />
	<updated>2013-07-04T07:47:43Z</updated>
	<generator>PunBB</generator>
	<id>https://quik2dde.ru/viewtopic.php?id=56</id>
		<entry>
			<title type="html"><![CDATA[Re: Помогите разобраться с GetCell и GetValue]]></title>
			<link rel="alternate" href="https://quik2dde.ru/viewtopic.php?pid=373#p373" />
			<content type="html"><![CDATA[<p>Случайно зацепил баг: в ячейке стоит значение 0.9, при этом метод GetValue возвращает &quot;value&quot; 0, а &quot;image&quot; 0.9. <br />На данный момент кое-где переделал в функциях table:GetValue(p1,p2,p3)[&quot;value&quot;] на tonumber(table:GetValue(p1,p2,p3)[&quot;image&quot;]), но хотелось бы узнать почему так метод работает странно.</p>]]></content>
			<author>
				<name><![CDATA[jestpounder]]></name>
				<uri>https://quik2dde.ru/profile.php?id=139</uri>
			</author>
			<updated>2013-07-04T07:47:43Z</updated>
			<id>https://quik2dde.ru/viewtopic.php?pid=373#p373</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите разобраться с GetCell и GetValue]]></title>
			<link rel="alternate" href="https://quik2dde.ru/viewtopic.php?pid=357#p357" />
			<content type="html"><![CDATA[<p>Спасибо большое! Не использовал параметры &quot;value&quot; и &quot;image&quot; вообще - вот и проблема. Не нашел примеров скриптов с этими функциями.</p>]]></content>
			<author>
				<name><![CDATA[jestpounder]]></name>
				<uri>https://quik2dde.ru/profile.php?id=139</uri>
			</author>
			<updated>2013-06-24T06:13:30Z</updated>
			<id>https://quik2dde.ru/viewtopic.php?pid=357#p357</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите разобраться с GetCell и GetValue]]></title>
			<link rel="alternate" href="https://quik2dde.ru/viewtopic.php?pid=355#p355" />
			<content type="html"><![CDATA[<p>У меня работает такой пример:</p><div class="codebox"><pre><code>dofile (getScriptPath() .. &quot;\\quik_table_wrapper.lua&quot;)

t = QTable.new()
if not t then
  message(&quot;error!&quot;, 3)
  return
end

t:AddColumn(&quot;test1&quot;, QTABLE_INT_TYPE, 10)
t:AddColumn(&quot;test2&quot;, QTABLE_INT_TYPE, 10)
t:Show()

for i = 1, 5 do
  local row = t:AddLine()
  t:SetValue(row, &quot;test1&quot;, i*11, 1)
  t:SetValue(row, &quot;test2&quot;, i*110, 2)
end

col1 = &quot;test1&quot;

message(tostring(t:GetValue(2, col1)[&quot;value&quot;]), 1)</code></pre></div><p>Вот этот ваш тезис выглядит сомнительным:<br /></p><div class="quotebox"><blockquote><p>message(MainTable:GetValue(1, col1)) говорит, что <strong>значение ячейки nil</strong></p></blockquote></div><p>хотя, конечно, без полного кода сказать однозначно сложно.</p>]]></content>
			<author>
				<name><![CDATA[korovin]]></name>
				<uri>https://quik2dde.ru/profile.php?id=140</uri>
			</author>
			<updated>2013-06-21T16:05:22Z</updated>
			<id>https://quik2dde.ru/viewtopic.php?pid=355#p355</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Помогите разобраться с GetCell и GetValue]]></title>
			<link rel="alternate" href="https://quik2dde.ru/viewtopic.php?pid=354#p354" />
			<content type="html"><![CDATA[<p>Добрый день!<br />Возникла проблема с получением значения ячейки таблицы.</p><p>message(MainTable:GetValue(1, col1)) говорит, что значение ячейки nil<br />в MainTable на тот момент 15 строк, экземпляр QTable, выводится таблица нормально<br />col1 = &quot;time&quot; заголовок первого столбца таблицы<br />Пробовал также через GetCell(MainTable.t_id, 1, MainTable.columns[col1].id), возвращает nil<br />версия терминала 6.6.1.18<br />Что не так?</p>]]></content>
			<author>
				<name><![CDATA[jestpounder]]></name>
				<uri>https://quik2dde.ru/profile.php?id=139</uri>
			</author>
			<updated>2013-06-21T09:51:45Z</updated>
			<id>https://quik2dde.ru/viewtopic.php?pid=354#p354</id>
		</entry>
</feed>
