<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[QUIK -> DDE &mdash; Не получается с таблицами текстовые столбцы QTABLE_STRING_TYPE]]></title>
	<link rel="self" href="https://quik2dde.ru/extern.php?action=feed&amp;tid=59&amp;type=atom" />
	<updated>2013-07-14T17:16:36Z</updated>
	<generator>PunBB</generator>
	<id>https://quik2dde.ru/viewtopic.php?id=59</id>
		<entry>
			<title type="html"><![CDATA[Re: Не получается с таблицами текстовые столбцы QTABLE_STRING_TYPE]]></title>
			<link rel="alternate" href="https://quik2dde.ru/viewtopic.php?pid=390#p390" />
			<content type="html"><![CDATA[<p>Хотелось бы:<br />а) починить указанную ошибку<br />б) хотелось бы, чтобы метод GetValue возвращал Value, а не таблицу. Ну и в довесок к нему GetImage можно придумать.</p><p>Еще не нашел в официальной документации в чем отличие столбцов разных типов, не понятно это.</p>]]></content>
			<author>
				<name><![CDATA[zedan0]]></name>
				<uri>https://quik2dde.ru/profile.php?id=141</uri>
			</author>
			<updated>2013-07-14T17:16:36Z</updated>
			<id>https://quik2dde.ru/viewtopic.php?pid=390#p390</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не получается с таблицами текстовые столбцы QTABLE_STRING_TYPE]]></title>
			<link rel="alternate" href="https://quik2dde.ru/viewtopic.php?pid=389#p389" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>zedan0 пишет:</cite><blockquote><p>Т.е. все еще нужно допиливать и допиливать... ну нам не привыкать, спасибо Arqa</p></blockquote></div><p>это был просто пример. если есть необходимость в такой обертке - говорите что бы вы хотели там увидеть. будем включать ее в официальную поставку.</p>]]></content>
			<author>
				<name><![CDATA[mbul]]></name>
				<uri>https://quik2dde.ru/profile.php?id=89</uri>
			</author>
			<updated>2013-07-14T10:36:34Z</updated>
			<id>https://quik2dde.ru/viewtopic.php?pid=389#p389</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не получается с таблицами текстовые столбцы QTABLE_STRING_TYPE]]></title>
			<link rel="alternate" href="https://quik2dde.ru/viewtopic.php?pid=388#p388" />
			<content type="html"><![CDATA[<p>Т.е. все еще нужно допиливать и допиливать... ну нам не привыкать, спасибо Arqa</p>]]></content>
			<author>
				<name><![CDATA[zedan0]]></name>
				<uri>https://quik2dde.ru/profile.php?id=141</uri>
			</author>
			<updated>2013-07-13T17:24:36Z</updated>
			<id>https://quik2dde.ru/viewtopic.php?pid=388#p388</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не получается с таблицами текстовые столбцы QTABLE_STRING_TYPE]]></title>
			<link rel="alternate" href="https://quik2dde.ru/viewtopic.php?pid=387#p387" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>zedan0 пишет:</cite><blockquote><p>Короче похоже какая-то беда в обертке над таблицей, блин.<br />Посмотрел примера от ARQA - они для текстовых строк нигде свое же t:SetValue и не используют! писатели, блин.</p></blockquote></div><p>Да, там есть ошибки. На самом деле пример писался не как руководство к действию или самостоятельная библиотека, а просто как пример реализации объектного интерфейса. Некоторым пользователям не понравился процедурный подход.</p>]]></content>
			<author>
				<name><![CDATA[mbul]]></name>
				<uri>https://quik2dde.ru/profile.php?id=89</uri>
			</author>
			<updated>2013-07-12T06:48:31Z</updated>
			<id>https://quik2dde.ru/viewtopic.php?pid=387#p387</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не получается с таблицами текстовые столбцы QTABLE_STRING_TYPE]]></title>
			<link rel="alternate" href="https://quik2dde.ru/viewtopic.php?pid=386#p386" />
			<content type="html"><![CDATA[<p>Короче похоже какая-то беда в обертке над таблицей, блин.<br />Посмотрел примера от ARQA - они для текстовых строк нигде свое же t:SetValue и не используют! писатели, блин.</p><p>Вот так работает, значение колонок с типом &quot;строка&quot; устанавливает:</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;test&quot;, QTABLE_INT_TYPE, 10)
t:AddColumn(&quot;GetI&quot;, QTABLE_STRING_TYPE, 17)
t:AddColumn(&quot;GetV&quot;, QTABLE_STRING_TYPE, 17)
t:Show()

for i = 1, 3 do
  local row = t:AddLine()
  t:SetValue(row, &quot;test&quot;, i*110.13, 6.77*i)
  --t:SetValue(row, &quot;GetI&quot;, &quot;22&quot;, --i)
  SetCell(t.t_id, row, 2, &quot;22&quot;, -i)
  --t:SetValue(row, &quot;GetV&quot;, &quot;string33&quot;, 5)
  SetCell(t.t_id, row, 3, &quot;string33&quot;)
end

t:Show()</code></pre></div>]]></content>
			<author>
				<name><![CDATA[zedan0]]></name>
				<uri>https://quik2dde.ru/profile.php?id=141</uri>
			</author>
			<updated>2013-07-11T18:00:16Z</updated>
			<id>https://quik2dde.ru/viewtopic.php?pid=386#p386</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не получается с таблицами текстовые столбцы QTABLE_STRING_TYPE]]></title>
			<link rel="alternate" href="https://quik2dde.ru/viewtopic.php?pid=385#p385" />
			<content type="html"><![CDATA[<p>Т.е. можно ставить тип столбца любой??<br />Спасибо, сейчас попробую.</p>]]></content>
			<author>
				<name><![CDATA[zedan0]]></name>
				<uri>https://quik2dde.ru/profile.php?id=141</uri>
			</author>
			<updated>2013-07-11T16:23:54Z</updated>
			<id>https://quik2dde.ru/viewtopic.php?pid=385#p385</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не получается с таблицами текстовые столбцы QTABLE_STRING_TYPE]]></title>
			<link rel="alternate" href="https://quik2dde.ru/viewtopic.php?pid=384#p384" />
			<content type="html"><![CDATA[<p>Я вот такую функцию допилил, использую QTABLE_DOUBLE_TYPE во всех колонках, строковое представление работает нормально (да, это странно)</p><p>function QTable:SetStringValue(row, col_name, data, value)<br />&nbsp; &nbsp; &nbsp;local col_ind = self.columns[col_name].id or nil<br />&nbsp; &nbsp; &nbsp;if col_ind == nil then&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;return false<br />&nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp; &nbsp;SetCell(self.t_id, row, col_ind,&nbsp; data, value)<br />end</p>]]></content>
			<author>
				<name><![CDATA[jestpounder]]></name>
				<uri>https://quik2dde.ru/profile.php?id=139</uri>
			</author>
			<updated>2013-07-11T10:18:36Z</updated>
			<id>https://quik2dde.ru/viewtopic.php?pid=384#p384</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Не получается с таблицами текстовые столбцы QTABLE_STRING_TYPE]]></title>
			<link rel="alternate" href="https://quik2dde.ru/viewtopic.php?pid=378#p378" />
			<content type="html"><![CDATA[<p>Пробую работать с таблицами.<br />Вот такой скрипт не хочет ничего выводить в столбцы второй и третий, названные GetI и GetV<br />Почему?? подскажите.</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;test&quot;, QTABLE_INT_TYPE, 10)
t:AddColumn(&quot;GetI&quot;, QTABLE_STRING_TYPE, 10)
t:AddColumn(&quot;GetV&quot;, QTABLE_STRING_TYPE, 10)
t:Show()

for i = 1, 3 do
  local row = t:AddLine()
  t:SetValue(row, &quot;test&quot;, i*110.13, 6.77*i)
  t:SetValue(row, &quot;GetI&quot;, &quot;22&quot;, 6)
  t:SetValue(row, &quot;GetV&quot;, &quot;string33&quot;)
end</code></pre></div>]]></content>
			<author>
				<name><![CDATA[zedan0]]></name>
				<uri>https://quik2dde.ru/profile.php?id=141</uri>
			</author>
			<updated>2013-07-05T17:46:22Z</updated>
			<id>https://quik2dde.ru/viewtopic.php?pid=378#p378</id>
		</entry>
</feed>
