<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
<channel>
 <title><![CDATA[3u数组下标如何间接指定]]></title>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1748382.html]]></link>
 <description><![CDATA[Latest 50 replies of 3u数组下标如何间接指定]]></description>
 <copyright><![CDATA[Copyright(C) 工控人家园]]></copyright>
 <generator><![CDATA[www.ymmfa.com]]></generator>
 <lastBuildDate><![CDATA[Mon, 11 May 2026 13:03:37 +0000]]></lastBuildDate>
  <image>
 <url><![CDATA[images/rss.gif]]></url>
 <title><![CDATA[工控人家园]]></title>
 <link><![CDATA[http://www.ymmfa.com]]></link>
 <description><![CDATA[工控人家园]]></description>
  </image>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[测试了下，没有任何问题]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1748382#2332388.html]]></link>
 <author><![CDATA[逆水行舟]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Wed, 04 Jan 2023 09:00:37 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[quote]引用第3楼小地主22于2023-01-03 16:39发表的&nbsp;&nbsp;:

同样的写法在5u上面是可以使用的，但是3u会报软元件错误[s:28]
好像3u不支持数组元素的间接指定一样
[/quote]

请帖上你的出错截图，虽然我这个程序也是GX Works2上跑过的。

Good Luck~]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1748382#2332377.html]]></link>
 <author><![CDATA[cvlsam]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Wed, 04 Jan 2023 07:34:21 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[quote]引用第2楼cvlsam于2023-01-03 11:41发表的&nbsp;&nbsp;:


FOR D0:=0 TO 9 BY 1 DO
&#160;&#160;&#160;&#160;switchButton[D0]:=1;
END_FOR;
.......
[/quote]
同样的写法在5u上面是可以使用的，但是3u会报软元件错误[s:28]
好像3u不支持数组元素的间接指定一样]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1748382#2332205.html]]></link>
 <author><![CDATA[小地主22]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Tue, 03 Jan 2023 08:39:41 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[quote]引用楼主小地主22于2023-01-03 11:26发表的 3u数组下标如何间接指定 :
比如说数组 手动按钮[0]&#160;&#160;用&#160;&#160;D0= K0&#160;&#160; 手动按钮[D0] 代替。5u中是可以这么做的&#160;&#160;不知道为什么3u不行
正确的方式是啥&#160;&#160;求指教[s:28]
[/quote]

FOR D0:=0 TO 9 BY 1 DO
&nbsp;&nbsp;&nbsp; ..]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1748382#2332146.html]]></link>
 <author><![CDATA[cvlsam]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Tue, 03 Jan 2023 03:41:24 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[我看你的意思是直接访问数组位置啊，&#160;&#160;直接用wArry[index] 指定数组下标就行，我用3u测试一下 并没有报错，可以运行]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1748382#2332145.html]]></link>
 <author><![CDATA[heiheiwodeai]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Tue, 03 Jan 2023 03:34:09 +0000]]></pubdate>
</item>
</channel></rss>