<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to variable</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5975f7118f/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5975f7118f/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/5975f7118f/</id><updated>2023-08-16T13:07:30.092000Z</updated><subtitle>Recent posts to variable</subtitle><entry><title>variable</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5975f7118f/?limit=25#a12c" rel="alternate"/><published>2023-08-16T13:07:30.092000Z</published><updated>2023-08-16T13:07:30.092000Z</updated><author><name>TimvH</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.coma50e8a210a50a178674d44330fa90634bd89ab50</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It is a naming convention. Nothing else. Most often you see this being used for the local (private) variables of a Function Block. It comes mainly from C++ / C# to not mix them up with (public) properties. Probably best is to search for C++ naming conventions to get more information.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>variable</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5975f7118f/?limit=25#8c5b" rel="alternate"/><published>2023-08-16T05:20:37.493000Z</published><updated>2023-08-16T05:20:37.493000Z</updated><author><name>sarunas</name><uri>https://forge.codesys.com/u/sarunas/</uri></author><id>https://forge.codesys.coma815b6d99edb2e6b9577a49a0779435bb1398d00</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br/&gt;
I have a perhaps stupid question. I've noticed a lot of code where variables are named with an underscore. If I write it like this:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;VAR&lt;/span&gt;
        &lt;span class="n"&gt;ValueToUInt&lt;/span&gt;                     &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;UINT&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;END_VAR&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;AND&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;VAR&lt;/span&gt;
&lt;span class="err"&gt;        _ValueToUInt                        :UINT;&lt;/span&gt;
&lt;span class="err"&gt;END_VAR&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Is it the same or not?"&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>