<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Clear variable since the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Clear-variable-since-the-script/m-p/814118#M287198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want a very flexible configuration in your QV documents, you could store the variable definitions in an external file (e.g. Excel)&lt;/P&gt;&lt;P&gt;You'll have to be careful when loading these definitions because $-sign substitution wil try to play tricks with you all the time...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2015 08:40:15 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2015-03-30T08:40:15Z</dc:date>
    <item>
      <title>Clear variable since the script</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-since-the-script/m-p/814114#M287194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've many variables in my application and I want to clear them with a loop in the script. Can you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Mar 2015 23:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-since-the-script/m-p/814114#M287194</guid>
      <dc:creator />
      <dc:date>2015-03-29T23:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable since the script</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-since-the-script/m-p/814115#M287195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the script you can set the variables to null by doing &lt;STRONG&gt;vVar = Null();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I usually set the variables, which I am not going to use in the front end of the application, at very end tab of my script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 00:20:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-since-the-script/m-p/814115#M287195</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-30T00:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable since the script</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-since-the-script/m-p/814116#M287196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you clear the variable in the end of the script using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vVariable = Null() ;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set vVariable = ;&lt;/P&gt;&lt;P&gt;&lt;EM style="text-decoration: underline;"&gt;and&lt;/EM&gt; delete the variable in Settings &amp;gt; Variable Overview, the variable will be automatically deleted at the end of the script every time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 08:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-since-the-script/m-p/814116#M287196</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-03-30T08:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable since the script</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-since-the-script/m-p/814117#M287197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this proves to be an interesting technique for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;At the start of your script, create an INLINE table with variable names, variable values and variable assignment types (LET or SET)&lt;/LI&gt;&lt;LI&gt;Next add a FOR loop that walks the table rows and performs a SET or LET for each variable (put this code in a SUB)&lt;/LI&gt;&lt;LI&gt;At the end of your script, add another FOR loop that does what has been suggested before, SET every variable in the table to NULL() or to ... nothing. (put this code in another SUB)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This only works for variables that were &lt;EM&gt;no&lt;/EM&gt;t defined in the Variable Overview. Those cannot be "uncreated" in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With respect to your original question, I don't know about any other LOOP-solution as QV cannot know beforehand which variables you want to drop and which ones you want to keep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 08:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-since-the-script/m-p/814117#M287197</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-03-30T08:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable since the script</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-since-the-script/m-p/814118#M287198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want a very flexible configuration in your QV documents, you could store the variable definitions in an external file (e.g. Excel)&lt;/P&gt;&lt;P&gt;You'll have to be careful when loading these definitions because $-sign substitution wil try to play tricks with you all the time...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 08:40:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-since-the-script/m-p/814118#M287198</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-03-30T08:40:15Z</dc:date>
    </item>
  </channel>
</rss>

