<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to REFERENCE TO in an array</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/02c59c06d9/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/02c59c06d9/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/02c59c06d9/</id><updated>2025-05-21T15:15:18.526000Z</updated><subtitle>Recent posts to REFERENCE TO in an array</subtitle><entry><title>REFERENCE TO in an array</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/02c59c06d9/?limit=250#24a0" rel="alternate"/><published>2025-05-21T15:15:18.526000Z</published><updated>2025-05-21T15:15:18.526000Z</updated><author><name>avenue68</name><uri>https://forge.codesys.com/u/avenue68/</uri></author><id>https://forge.codesys.comf19db328ba2422c56869301c050ea42362bd1141</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;That's because the array only contains structures themselves, not references.&lt;br/&gt;
It doesn't matter that what consists of each struectures unless they are not pointers.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>REFERENCE TO in an array</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/02c59c06d9/?limit=25#f5ef" rel="alternate"/><published>2024-10-14T13:13:11.438000Z</published><updated>2024-10-14T13:13:11.438000Z</updated><author><name>janber</name><uri>https://forge.codesys.com/u/janber/</uri></author><id>https://forge.codesys.com7c2565ca2e439ebf183c187ee8ab86ff96d1349a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;br/&gt;
in the online help it written, that array of reference to data type is not possible.&lt;br/&gt;
Ok...&lt;/p&gt;
&lt;p&gt;but if I create array of struct of reference to - everything works fine - please see the screenshots:&lt;/p&gt;
&lt;p&gt;&lt;img src="./attachment/01.png"/&gt;&lt;br/&gt;
&lt;img src="./attachment/02.png"/&gt;&lt;/p&gt;
&lt;p&gt;and it works this way OK. Is it intention or error in compiler 3.5.18.20 and we should avoid it?&lt;/p&gt;
&lt;p&gt;Thanks a lot,&lt;/p&gt;
&lt;p&gt;Jan.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>