<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[QUIK -> DDE &mdash; получение значения из экселя]]></title>
	<link rel="self" href="https://quik2dde.ru/extern.php?action=feed&amp;tid=213&amp;type=atom" />
	<updated>2017-02-17T06:37:38Z</updated>
	<generator>PunBB</generator>
	<id>https://quik2dde.ru/viewtopic.php?id=213</id>
		<entry>
			<title type="html"><![CDATA[Re: получение значения из экселя]]></title>
			<link rel="alternate" href="https://quik2dde.ru/viewtopic.php?pid=2092#p2092" />
			<content type="html"><![CDATA[<p>Делаем по аналогии как здесь<br />[url]https://quik2dde.ru/viewtopic.php?id=81[/url]</p><div class="codebox"><pre><code>require &quot;luacom&quot;

message(&quot;Start&quot;)
excel = luacom.GetObject(&quot;Excel.Application&quot;)
message(&quot;Start1&quot;)
if excel ~= nil then
    sheets = excel.Worksheets
    sheet1 = sheets:Item(1)
    A1 = sheet1.Cells(1,1).Value2
    B1 = sheet1.Cells(1,2).Value2
    message(&quot;A1=&quot; .. tostring(A1) .. &quot; B1=&quot; .. tostring(B1))
else
    message(&quot;Excel nil&quot;)
end</code></pre></div>]]></content>
			<author>
				<name><![CDATA[swerg]]></name>
				<uri>https://quik2dde.ru/profile.php?id=78</uri>
			</author>
			<updated>2017-02-17T06:37:38Z</updated>
			<id>https://quik2dde.ru/viewtopic.php?pid=2092#p2092</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[получение значения из экселя]]></title>
			<link rel="alternate" href="https://quik2dde.ru/viewtopic.php?pid=2090#p2090" />
			<content type="html"><![CDATA[<p>Здраствуйте,поскажите как можно переделать этот код,чтобы значение цены и объема бралось из ячейки экселя ,например,из ячейки А1 и B1 ?</p><div class="codebox"><pre><code>t = {

            [&quot;CLASSCODE&quot;]=&quot;SPBFUT&quot;,

            [&quot;SECCODE&quot;]=&quot;SiH7&quot;,

            [&quot;ACTION&quot;]=&quot;NEW_ORDER&quot;,

            [&quot;ACCOUNT&quot;]=&quot;4110H2C&quot;,

            [&quot;CLIENT_CODE&quot;]=&quot;51111&quot;,

            [&quot;TYPE&quot;]=&quot;L&quot;,

            [&quot;OPERATION&quot;]=&quot;B&quot;,

            [&quot;QUANTITY&quot;]=&quot;1&quot;,

            [&quot;PRICE&quot;]=&quot;57800&quot;,

            [&quot;TRANS_ID&quot;]=&quot;1&quot;

      }

res=sendTransaction(t)

message(res,1)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[sa920]]></name>
				<uri>https://quik2dde.ru/profile.php?id=823</uri>
			</author>
			<updated>2017-02-16T12:50:07Z</updated>
			<id>https://quik2dde.ru/viewtopic.php?pid=2090#p2090</id>
		</entry>
</feed>
