<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Length of string and Array of bytes</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/64c3fd68e0/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/64c3fd68e0/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/64c3fd68e0/</id><updated>2025-04-02T06:28:07.015000Z</updated><subtitle>Recent posts to Length of string and Array of bytes</subtitle><entry><title>Length of string and Array of bytes</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/64c3fd68e0/?limit=25#a562" rel="alternate"/><published>2025-04-02T06:28:07.015000Z</published><updated>2025-04-02T06:28:07.015000Z</updated><author><name>eaglealex</name><uri>https://forge.codesys.com/u/eaglealex/</uri></author><id>https://forge.codesys.com9fb4e870b560afa2b0e4aae2d38149868d68b2d4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for your answer!&lt;/p&gt;
&lt;p&gt;I know that 0 will be the end of the string. I checked it. There is no 0 in array of bytes.&lt;br/&gt;
I made screenshots. There is array of bytes, aborted string and the result of my test via online converter.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Length of string and Array of bytes</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/64c3fd68e0/?limit=25#b8d8/e3e8" rel="alternate"/><published>2025-04-02T06:27:41.394000Z</published><updated>2025-04-02T06:27:41.394000Z</updated><author><name>eaglealex</name><uri>https://forge.codesys.com/u/eaglealex/</uri></author><id>https://forge.codesys.com209c06be0eefa3285d2a8b8831520b189399fedb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for your answer!&lt;/p&gt;
&lt;p&gt;I know that 0 will be the end of the string. I checked it. There is no 0 in array of bytes.&lt;br/&gt;
I made screenshots. There is array of bytes, aborted string and the result of my test via online converter.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Length of string and Array of bytes</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/64c3fd68e0/?limit=25#b8d8" rel="alternate"/><published>2025-04-01T17:28:57.102000Z</published><updated>2025-04-01T17:28:57.102000Z</updated><author><name>Ton</name><uri>https://forge.codesys.com/u/ton/</uri></author><id>https://forge.codesys.comc1bf7870209c44977b7152569c5827a3d6c21f86</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When you use a string value 0 will be the end terminator.&lt;br/&gt;
Everything after this will not be in the string.&lt;br/&gt;
I guess byte 2394 has a value 0.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Length of string and Array of bytes</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/64c3fd68e0/?limit=25#8f4d" rel="alternate"/><published>2025-04-01T05:43:27.770000Z</published><updated>2025-04-01T05:43:27.770000Z</updated><author><name>eaglealex</name><uri>https://forge.codesys.com/u/eaglealex/</uri></author><id>https://forge.codesys.com26c936b8d82977efafef7d7eca83ca6aee900841</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;I have tried read a file to the string variable. But I faced a problem - there is about 2800 bytes of information in files, but string have a limit 2393 bytes.&lt;br/&gt;
I made two variables with same address (for automatic convertion) - string&lt;span&gt;[3000]&lt;/span&gt; and array of bytes&lt;span&gt;[1..3000]&lt;/span&gt;. And I noticed that array of bytes contains all information from file, but string shows only first 2393 bytes. So I have lost information.&lt;br/&gt;
Is there really such a limitation? Or I have an error in my program and Codesys 2.3 have no limit for such kind of conversation between string and array of bytes?&lt;/p&gt;
&lt;p&gt;Thank you very much!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>