<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to restrictions on enumeration member name if equal to a reserved operand</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3874d3c662/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3874d3c662/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/3874d3c662/</id><updated>2020-04-10T10:07:15.037000Z</updated><subtitle>Recent posts to restrictions on enumeration member name if equal to a reserved operand</subtitle><entry><title>restrictions on enumeration member name if equal to a reserved operand</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3874d3c662/?limit=25#f71e" rel="alternate"/><published>2020-04-10T10:07:15.037000Z</published><updated>2020-04-10T10:07:15.037000Z</updated><author><name>mkrispin</name><uri>https://forge.codesys.com/u/mkrispin/</uri></author><id>https://forge.codesys.comfd7495a2ec97d4a9a5e91042dc83165180db2855</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;OK, i give up, bend down to the ground and pray to the holy web master, who programmed to change a single underline into a font action, even in quotations :-((&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>restrictions on enumeration member name if equal to a reserved operand</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3874d3c662/?limit=25#e211" rel="alternate"/><published>2020-04-10T10:04:28.459000Z</published><updated>2020-04-10T10:04:28.459000Z</updated><author><name>mkrispin</name><uri>https://forge.codesys.com/u/mkrispin/</uri></author><id>https://forge.codesys.com2e87e866641ed221339608435fe50966338be89a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Oh, why are the underline left and right of the characters are cut?&lt;br/&gt;
I want to write "&lt;em&gt;N&lt;/em&gt;" ...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>restrictions on enumeration member name if equal to a reserved operand</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3874d3c662/?limit=25#d33c" rel="alternate"/><published>2020-04-10T10:02:29.483000Z</published><updated>2020-04-10T10:02:29.483000Z</updated><author><name>mkrispin</name><uri>https://forge.codesys.com/u/mkrispin/</uri></author><id>https://forge.codesys.com71c1cde08aa7eeeb23691b33614269867bd260d5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Aliazzz,&lt;br/&gt;
thanks for the Tip.I tried even with quotation and other special Character. Don't know why I did not test with underline, maybe it was late. &lt;br/&gt;
Anyway , I will name now all the 4 main directions to &lt;em&gt;N&lt;/em&gt;, &lt;em&gt;E&lt;/em&gt; , &lt;em&gt;S&lt;/em&gt;, &lt;em&gt;W&lt;/em&gt; . Then all have the same 3 char length, and they peak even stronger up :-)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>restrictions on enumeration member name if equal to a reserved operand</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3874d3c662/?limit=250#d7f9" rel="alternate"/><published>2020-04-10T09:47:40.522000Z</published><updated>2020-04-10T09:47:40.522000Z</updated><author><name>aliazzz</name><uri>https://forge.codesys.com/u/aliazzz/</uri></author><id>https://forge.codesys.com13a839788bbb14269ad6099b53d36f9584b501a6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have got a workaround for this which is rather painless.&lt;br/&gt;
Just trail it with an underscore like so: S_&lt;/p&gt;
&lt;p&gt;The compiler will accept it and you can use intellisense to find the enumeration quickly;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="c"&gt;(* Example *)&lt;/span&gt;
&lt;span class="n"&gt;WindDirection&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;eWINDDIR&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;eWINDDIR&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;S_&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="n"&gt;default&lt;/span&gt; &lt;span class="n"&gt;wind&lt;/span&gt; &lt;span class="n"&gt;direction&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="n"&gt;south&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>restrictions on enumeration member name if equal to a reserved operand</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3874d3c662/?limit=25#6060" rel="alternate"/><published>2020-04-09T16:49:43.212000Z</published><updated>2020-04-09T16:49:43.212000Z</updated><author><name>mkrispin</name><uri>https://forge.codesys.com/u/mkrispin/</uri></author><id>https://forge.codesys.com2d497ce66a2acedd06bbfb9c242e5c5aace1b3e3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi All,&lt;br/&gt;
I would like to build an enumeration for the main wind directions like N,NNW,NWW etc.&lt;br/&gt;
There is one problem with S, because S is a reserved name for Set in flip-flops.&lt;br/&gt;
How can I declare S as a member of the enumeration WindDir?&lt;br/&gt;
TYPE eWINDDIR :&lt;br/&gt;
(&lt;br/&gt;
    N   := 1,&lt;br/&gt;
    NNE := 2, &lt;br/&gt;
    NEE := 3, &lt;br/&gt;
    E   := 4, &lt;br/&gt;
    SEE := 5, &lt;br/&gt;
    SSE := 6,&lt;br/&gt;
    S   := 7, &lt;br/&gt;
    SSW := 8, &lt;br/&gt;
    SWW := 9, &lt;br/&gt;
    W   := 10, &lt;br/&gt;
    NWW := 11,&lt;br/&gt;
    NWN := 12); &lt;br/&gt;
);&lt;br/&gt;
END_TYPE&lt;/p&gt;
&lt;p&gt;Thank You and Best Regards, Michael&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>