<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Variable length array</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/8b1299eec5/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/8b1299eec5/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/8b1299eec5/</id><updated>2020-02-27T21:54:47.174000Z</updated><subtitle>Recent posts to Variable length array</subtitle><entry><title>Variable length array</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/8b1299eec5/?limit=25#5089" rel="alternate"/><published>2020-02-27T21:54:47.174000Z</published><updated>2020-02-27T21:54:47.174000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com949146b282db9a224a7c3811c4e4437501ae9470</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;No strings must be fixed length, as the program needs to know where to start.&lt;/p&gt;
&lt;p&gt;However you can make a big area and do it with pointers and lengths,&lt;br/&gt;
you can have a look at  w &lt;a class="" href="http://www.oscat.de" rel="nofollow"&gt;www.oscat.de&lt;/a&gt; w &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Variable length array</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/8b1299eec5/?limit=25#83fb" rel="alternate"/><published>2020-02-27T21:54:45.489000Z</published><updated>2020-02-27T21:54:45.489000Z</updated><author><name>NicoRed</name><uri>https://forge.codesys.com/u/nicored/</uri></author><id>https://forge.codesys.com91ae06fd9991ef97781aef5dd66c95846b44b9e4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For a project I have to be able to declare a variable length array. &lt;br/&gt;
I retrieve data from a MySQL database and depending on how long the resultquery is I need a longer array.&lt;br/&gt;
The idea is to put the result in an array of structure (structure = every column of the query --&amp;gt; Number = DWORD and Name = String). Then I can show the result in a Table on a visualisation screen.&lt;/p&gt;
&lt;p&gt;The problem is I can't figure out how to make an array of variable length. Lets say that I put the size of the array in the varriable ArrayLength. &lt;/p&gt;
&lt;p&gt;I wonder how to continue from here?&lt;/p&gt;
&lt;p&gt;Nico.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>