<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to ENUM strings</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/165f319cbc/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/165f319cbc/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/165f319cbc/</id><updated>2020-02-27T13:56:01.738000Z</updated><subtitle>Recent posts to ENUM strings</subtitle><entry><title>ENUM strings</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/165f319cbc/?limit=25#7d19" rel="alternate"/><published>2020-02-27T13:56:01.738000Z</published><updated>2020-02-27T13:56:01.738000Z</updated><author><name>switcher</name><uri>https://forge.codesys.com/u/switcher/</uri></author><id>https://forge.codesys.comf8a5b04427272068dfa5978f1dc8ea4136b529f8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you very much! This is helpful!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Zdenko.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>ENUM strings</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/165f319cbc/?limit=25#9a71" rel="alternate"/><published>2020-02-27T13:56:01.526000Z</published><updated>2020-02-27T13:56:01.526000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com4b6befa5dc6b67b75f9463a0801bb4f5aeebb68d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;No this is not possible (or at least it was not possible when I last checked).&lt;/p&gt;
&lt;p&gt;What you could do is add text lists and place the text in these lists. From the application you can read these lists.&lt;br/&gt;
See &lt;a class="" href="http://forum.codesys.com/viewtopic.php?f=11&amp;amp;t=5955" rel="nofollow"&gt;http://forum.codesys.com/viewtopic.php?f=11&amp;amp;t=5955&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The advantage is that you could translate these text lists for use in other languages.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>ENUM strings</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/165f319cbc/?limit=25#5d2c" rel="alternate"/><published>2020-02-27T13:56:01.293000Z</published><updated>2020-02-27T13:56:01.293000Z</updated><author><name>switcher</name><uri>https://forge.codesys.com/u/switcher/</uri></author><id>https://forge.codesys.comfcc99ed9003a5592d72e51c9fc0604b76ba16649</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a simple ENUM definition:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;TYPE&lt;/span&gt; &lt;span class="k"&gt;Data&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="p"&gt;(&lt;/span&gt;
&lt;span class="n"&gt;Data1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="n"&gt;Data2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="n"&gt;Data3&lt;/span&gt;
&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="n"&gt;END_TYPE&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Data1 is equal number 0, Data2 is equal number 1 etc...&lt;br/&gt;
My question is:&lt;br/&gt;
How can I get strings from ENUM data? &lt;br/&gt;
For example - I like to get string Data1 in string variable (using number 0). Is it possible to get this in Codesys?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;br/&gt;
Best regards, Zdenko.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>