<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[QUIK -> DDE &mdash; Не получается с таблицами текстовые столбцы QTABLE_STRING_TYPE]]></title>
		<link>https://quik2dde.ru/viewtopic.php?id=59</link>
		<atom:link href="https://quik2dde.ru/extern.php?action=feed&amp;tid=59&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Не получается с таблицами текстовые столбцы QTABLE_STRING_TYPE».]]></description>
		<lastBuildDate>Sun, 14 Jul 2013 17:16:36 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Не получается с таблицами текстовые столбцы QTABLE_STRING_TYPE]]></title>
			<link>https://quik2dde.ru/viewtopic.php?pid=390#p390</link>
			<description><![CDATA[<p>Хотелось бы:<br />а) починить указанную ошибку<br />б) хотелось бы, чтобы метод GetValue возвращал Value, а не таблицу. Ну и в довесок к нему GetImage можно придумать.</p><p>Еще не нашел в официальной документации в чем отличие столбцов разных типов, не понятно это.</p>]]></description>
			<author><![CDATA[null@example.com (zedan0)]]></author>
			<pubDate>Sun, 14 Jul 2013 17:16:36 +0000</pubDate>
			<guid>https://quik2dde.ru/viewtopic.php?pid=390#p390</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не получается с таблицами текстовые столбцы QTABLE_STRING_TYPE]]></title>
			<link>https://quik2dde.ru/viewtopic.php?pid=389#p389</link>
			<description><![CDATA[<div class="quotebox"><cite>zedan0 пишет:</cite><blockquote><p>Т.е. все еще нужно допиливать и допиливать... ну нам не привыкать, спасибо Arqa</p></blockquote></div><p>это был просто пример. если есть необходимость в такой обертке - говорите что бы вы хотели там увидеть. будем включать ее в официальную поставку.</p>]]></description>
			<author><![CDATA[null@example.com (mbul)]]></author>
			<pubDate>Sun, 14 Jul 2013 10:36:34 +0000</pubDate>
			<guid>https://quik2dde.ru/viewtopic.php?pid=389#p389</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не получается с таблицами текстовые столбцы QTABLE_STRING_TYPE]]></title>
			<link>https://quik2dde.ru/viewtopic.php?pid=388#p388</link>
			<description><![CDATA[<p>Т.е. все еще нужно допиливать и допиливать... ну нам не привыкать, спасибо Arqa</p>]]></description>
			<author><![CDATA[null@example.com (zedan0)]]></author>
			<pubDate>Sat, 13 Jul 2013 17:24:36 +0000</pubDate>
			<guid>https://quik2dde.ru/viewtopic.php?pid=388#p388</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не получается с таблицами текстовые столбцы QTABLE_STRING_TYPE]]></title>
			<link>https://quik2dde.ru/viewtopic.php?pid=387#p387</link>
			<description><![CDATA[<div class="quotebox"><cite>zedan0 пишет:</cite><blockquote><p>Короче похоже какая-то беда в обертке над таблицей, блин.<br />Посмотрел примера от ARQA - они для текстовых строк нигде свое же t:SetValue и не используют! писатели, блин.</p></blockquote></div><p>Да, там есть ошибки. На самом деле пример писался не как руководство к действию или самостоятельная библиотека, а просто как пример реализации объектного интерфейса. Некоторым пользователям не понравился процедурный подход.</p>]]></description>
			<author><![CDATA[null@example.com (mbul)]]></author>
			<pubDate>Fri, 12 Jul 2013 06:48:31 +0000</pubDate>
			<guid>https://quik2dde.ru/viewtopic.php?pid=387#p387</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не получается с таблицами текстовые столбцы QTABLE_STRING_TYPE]]></title>
			<link>https://quik2dde.ru/viewtopic.php?pid=386#p386</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (zedan0)]]></author>
			<pubDate>Thu, 11 Jul 2013 18:00:16 +0000</pubDate>
			<guid>https://quik2dde.ru/viewtopic.php?pid=386#p386</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не получается с таблицами текстовые столбцы QTABLE_STRING_TYPE]]></title>
			<link>https://quik2dde.ru/viewtopic.php?pid=385#p385</link>
			<description><![CDATA[<p>Т.е. можно ставить тип столбца любой??<br />Спасибо, сейчас попробую.</p>]]></description>
			<author><![CDATA[null@example.com (zedan0)]]></author>
			<pubDate>Thu, 11 Jul 2013 16:23:54 +0000</pubDate>
			<guid>https://quik2dde.ru/viewtopic.php?pid=385#p385</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не получается с таблицами текстовые столбцы QTABLE_STRING_TYPE]]></title>
			<link>https://quik2dde.ru/viewtopic.php?pid=384#p384</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (jestpounder)]]></author>
			<pubDate>Thu, 11 Jul 2013 10:18:36 +0000</pubDate>
			<guid>https://quik2dde.ru/viewtopic.php?pid=384#p384</guid>
		</item>
		<item>
			<title><![CDATA[Не получается с таблицами текстовые столбцы QTABLE_STRING_TYPE]]></title>
			<link>https://quik2dde.ru/viewtopic.php?pid=378#p378</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (zedan0)]]></author>
			<pubDate>Fri, 05 Jul 2013 17:46:22 +0000</pubDate>
			<guid>https://quik2dde.ru/viewtopic.php?pid=378#p378</guid>
		</item>
	</channel>
</rss>
