<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to TO_STRING operator not working for IMPLICIT ENUM</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9353fd465d/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9353fd465d/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/9353fd465d/</id><updated>2025-03-27T10:00:44.270000Z</updated><subtitle>Recent posts to TO_STRING operator not working for IMPLICIT ENUM</subtitle><entry><title>TO_STRING operator not working for IMPLICIT ENUM</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9353fd465d/?limit=25#e526" rel="alternate"/><published>2025-03-27T10:00:44.270000Z</published><updated>2025-03-27T10:00:44.270000Z</updated><author><name>imdatatas</name><uri>https://forge.codesys.com/u/imdatatas/</uri></author><id>https://forge.codesys.comb039176ac6bb60de0d0a805e608381bc194bfa47</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Everyone,&lt;/p&gt;
&lt;p&gt;It is a very useful feature to be able to obtain the enum value as a string with the TO_STRING operator by defining {attribute 'to_string'}.&lt;/p&gt;
&lt;p&gt;However, unfortunately the same function does not work for IMPLICIT ENUMs.&lt;/p&gt;
&lt;p&gt;I hope that {attribute 'to_string'} behavior can also work for Implicit Enumeration data types in one of the upcoming Codesys versions.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_pragma_attribute_to_string.html" rel="nofollow"&gt;https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_pragma_attribute_to_string.html&lt;/a&gt;&lt;br/&gt;
&lt;a href="https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_datatype_implicit_enumeration.html" rel="nofollow"&gt;https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_datatype_implicit_enumeration.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Imdat&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>