<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to question about "Collection example"</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d51e4d82d4/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d51e4d82d4/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/d51e4d82d4/</id><updated>2020-11-22T00:17:39.208000Z</updated><subtitle>Recent posts to question about "Collection example"</subtitle><entry><title>question about "Collection example"</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d51e4d82d4/?limit=25#2683" rel="alternate"/><published>2020-11-22T00:17:39.208000Z</published><updated>2020-11-22T00:17:39.208000Z</updated><author><name>audi0615</name><uri>https://forge.codesys.com/u/audi0615/</uri></author><id>https://forge.codesys.comd8790d76593708cf1c52d83a5d37aeeb79492618</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you so much for your reply.&lt;br/&gt;
I need to use a hash table in my project, so i would make the hashcode unique.&lt;br/&gt;
Thanks for the new example site, very convenient.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>question about "Collection example"</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d51e4d82d4/?limit=250#d66c" rel="alternate"/><published>2020-11-21T12:08:37.658000Z</published><updated>2020-11-21T12:08:37.658000Z</updated><author><name>aliazzz</name><uri>https://forge.codesys.com/u/aliazzz/</uri></author><id>https://forge.codesys.comde4a8f9b74cfb60a60acbd7a665f0e619eef04d6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It all depends whether you need a (unique) hash in your solution? If you don't need hash codes in your collection elements, my suggestion would be to remove it. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>question about "Collection example"</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d51e4d82d4/?limit=25#3bd6" rel="alternate"/><published>2020-11-21T11:38:42.739000Z</published><updated>2020-11-21T11:38:42.739000Z</updated><author><name>audi0615</name><uri>https://forge.codesys.com/u/audi0615/</uri></author><id>https://forge.codesys.come373e52877b2c90ccbcc625d5f81f1c7981ca6d6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I was able to build a libary for Lreal type except "hashcode".&lt;/p&gt;
&lt;p&gt;According to comments in the element example, "hashcode" is used in a hash table. Is it correct to just use LrealValue as the hashcode?&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;ElementHashCode&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;LREAL_TO_LINT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;LrealValue&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>question about "Collection example"</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d51e4d82d4/?limit=25#223e" rel="alternate"/><published>2020-11-21T07:12:08.094000Z</published><updated>2020-11-21T07:12:08.094000Z</updated><author><name>audi0615</name><uri>https://forge.codesys.com/u/audi0615/</uri></author><id>https://forge.codesys.com3622f41e92135401cdce331e6c2753071fbad2ea</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for your kind reply. I would try it.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>question about "Collection example"</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d51e4d82d4/?limit=250#87b8/57f7" rel="alternate"/><published>2020-11-19T09:39:57.816000Z</published><updated>2020-11-19T09:39:57.816000Z</updated><author><name>aliazzz</name><uri>https://forge.codesys.com/u/aliazzz/</uri></author><id>https://forge.codesys.com8a4c15b570a5737e0bb7d16534031279fcd94da2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If you look at this part of the example, you can build it yourself.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>question about "Collection example"</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d51e4d82d4/?limit=25#87b8" rel="alternate"/><published>2020-11-18T22:53:56.003000Z</published><updated>2020-11-18T22:53:56.003000Z</updated><author><name>audi0615</name><uri>https://forge.codesys.com/u/audi0615/</uri></author><id>https://forge.codesys.comf558ddb804b9f0c6e543b2d2b732aafb02208180</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for your reply.&lt;br/&gt;
but still i don't understand how to implement real type collection.&lt;br/&gt;
the library provides bool,int, dint, udint, lint, string, wstring type collection. only real type is missing.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>question about "Collection example"</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d51e4d82d4/?limit=250#89f4" rel="alternate"/><published>2020-11-18T09:08:19.519000Z</published><updated>2020-11-18T09:08:19.519000Z</updated><author><name>aliazzz</name><uri>https://forge.codesys.com/u/aliazzz/</uri></author><id>https://forge.codesys.com41e917949eb364c82f5c5467684156d030cffc8c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Since the Collection Elements are FB types you can program whatever you wish.&lt;br/&gt;
So implementing a REAL or LREAL will &lt;strong&gt;not&lt;/strong&gt; be an issue. Either you implement the Collection Interface or you extend collection FB type (read the extensive help on it). If you do this you can design your own Element FB types. This choice is up to you.&lt;/p&gt;
&lt;p&gt;On "dynamic" collections:&lt;br/&gt;
In theory there is no limit to maximum size of the collection, but please read the following article &lt;strong&gt;very very&lt;/strong&gt; carefully.&lt;br/&gt;
&lt;a href="https://help.codesys.com/webapp/_cds_operator_new;product=codesys;version=3.5.16.0" rel="nofollow"&gt;https://help.codesys.com/webapp/_cds_operator_new;product=codesys;version=3.5.16.0&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>question about "Collection example"</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d51e4d82d4/?limit=25#34fb" rel="alternate"/><published>2020-11-18T04:44:25.033000Z</published><updated>2020-11-18T04:44:25.033000Z</updated><author><name>audi0615</name><uri>https://forge.codesys.com/u/audi0615/</uri></author><id>https://forge.codesys.com056f0cf21fa4d362a3762c6e48b140fbdc658368</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;With regard to "Collection example" in the store,&lt;br/&gt;
I'd like to know why there are no collections for real type variable.(RealList, RealQueue, RealStack)&lt;br/&gt;
if i want to add real type variables into a collection, do i have to convert them to int type variables??&lt;br/&gt;
Another question is, what is a limitation of size of dynamic collection. no limit?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>