<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Use Global Variables</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/788243f0e8/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/788243f0e8/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/788243f0e8/</id><updated>2020-02-27T13:52:52.818000Z</updated><subtitle>Recent posts to Use Global Variables</subtitle><entry><title>Use Global Variables</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/788243f0e8/?limit=25#1fa1" rel="alternate"/><published>2020-02-27T13:52:52.818000Z</published><updated>2020-02-27T13:52:52.818000Z</updated><author><name>teichhei</name><uri>https://forge.codesys.com/u/teichhei/</uri></author><id>https://forge.codesys.coma71b7eb346fc1a405708c0400a18c4be9ec09941</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Agreed, using qualified_only as the default makes perfect sense. Makes it easier to organise as well.&lt;/p&gt;
&lt;p&gt;Sent from my SM-G935F using Tapatalk&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Use Global Variables</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/788243f0e8/?limit=25#b807" rel="alternate"/><published>2020-02-27T13:52:52.279000Z</published><updated>2020-02-27T13:52:52.279000Z</updated><author><name>bjh</name><uri>https://forge.codesys.com/u/bjh/</uri></author><id>https://forge.codesys.com8e24c2e890620f0ccf5f23ea52d25d07c3996596</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Remove this from the top of your GVL:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;{&lt;/span&gt;&lt;span class="n"&gt;attribute&lt;/span&gt; &lt;span class="s1"&gt;'qualified_only'&lt;/span&gt;&lt;span class="err"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;This attribute forces one to use the fully qualified variable name, i.e "GVL.Variable" instead of just "Variable".&lt;/p&gt;
&lt;p&gt;However, I find that forcing the qualified name can be helpful because it makes it more difficult to get your variables mixed up and it becomes very clear that you're dealing with a global.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Use Global Variables</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/788243f0e8/?limit=25#3007" rel="alternate"/><published>2020-02-27T13:52:52.109000Z</published><updated>2020-02-27T13:52:52.109000Z</updated><author><name>freedumz</name><uri>https://forge.codesys.com/u/freedumz/</uri></author><id>https://forge.codesys.coma45250be1b52aa2e2729ca74a01b39e432e3dc4b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;Since I've installed codesys version 3.5.8, when I want to use a global variable which is declared for example in the GVL file, I have to call it by this way: Gvl.VariableName&lt;br/&gt;
But before, with the version 3.5.5, I didnt have to do that, only the name was enough&lt;br/&gt;
And if I update an old progam created with 3.5.5 to version 3.5.10, I can continue to call my variable only by their name, I have done a quick check in the setting between the bot version but I found nothing&lt;br/&gt;
Someone has an idea of what I have to do?&lt;/p&gt;
&lt;p&gt;Many thanks in advance&lt;/p&gt;
&lt;p&gt;Dom&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>