<?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: Please Can anyone answer this in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Please-Can-anyone-answer-this/m-p/1624725#M446028</link>
    <description>&lt;P&gt;It should be 7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are ever unsure, it is worth testing out on your own. If you run this using the debugger it will show you how the different parts of this are executed and how the variable changes.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2019 14:33:41 GMT</pubDate>
    <dc:creator>treysmithdev</dc:creator>
    <dc:date>2019-09-17T14:33:41Z</dc:date>
    <item>
      <title>Please Can anyone answer this</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Can-anyone-answer-this/m-p/1624207#M445985</link>
      <description>&lt;P&gt;&lt;IMG src="https://community.qlik.com/t5/image/serverpage/image-id/19274i485D9AC071634043/image-size/medium?v=1.0&amp;amp;px=-1" border="0" width="1080" height="2160" title="Screenshot_20190916_184151_com.android.gallery3d.jpg" alt="Screenshot_20190916_184151_com.android.gallery3d.jpg" /&gt;&lt;/P&gt;&lt;P&gt;  Set &amp;amp; let&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 13:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Can-anyone-answer-this/m-p/1624207#M445985</guid>
      <dc:creator>Naresh1</dc:creator>
      <dc:date>2019-09-16T13:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Please Can anyone answer this</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Can-anyone-answer-this/m-p/1624725#M446028</link>
      <description>&lt;P&gt;It should be 7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are ever unsure, it is worth testing out on your own. If you run this using the debugger it will show you how the different parts of this are executed and how the variable changes.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 14:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Can-anyone-answer-this/m-p/1624725#M446028</guid>
      <dc:creator>treysmithdev</dc:creator>
      <dc:date>2019-09-17T14:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Please Can anyone answer this</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Can-anyone-answer-this/m-p/1624734#M446030</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;vValue is a string because 1+2 is between " ' " (and you are using SET instead of LET)&lt;/P&gt;&lt;P&gt;So you couldn't do a sum.&lt;/P&gt;&lt;P&gt;So at the end:&lt;/P&gt;&lt;P&gt;vValue = '1+2'&lt;/P&gt;&lt;P&gt;vSum = '+4'&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 14:46:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Can-anyone-answer-this/m-p/1624734#M446030</guid>
      <dc:creator>StarinieriG</dc:creator>
      <dc:date>2019-09-17T14:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Please Can anyone answer this</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Can-anyone-answer-this/m-p/1624792#M446042</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/83275"&gt;@StarinieriG&lt;/a&gt;&amp;nbsp; vValue gets replaced with the string in the vSum LET expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Let vSum = $(vValue) + 4;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Turns into:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Let vSum = 1+2 + 4;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Debugger window to visualize:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/t5/image/serverpage/image-id/19393i35FD83AC95F9EDDA/image-size/medium?v=1.0&amp;amp;px=-1" border="0" title="clipboard_image_1.png" alt="clipboard_image_1.png" /&gt;&lt;/P&gt;&lt;P&gt;If you take the script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sub A

	SET vValue = '1+2';

EndSUB

Sub B

	Let vSum = $(vValue)+4;
    
EndSub;

Sub C

	let vValue=;
    
    let vSum=;
    
EndSub

Set vValue=56;

CALL A; Call B;


Trace ------------------ vValue = $(vValue) | vSum = $(vSum);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will return:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/t5/image/serverpage/image-id/19391iA1536AAD0C6F2C6F/image-size/medium?v=1.0&amp;amp;px=-1" border="0" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 16:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Can-anyone-answer-this/m-p/1624792#M446042</guid>
      <dc:creator>treysmithdev</dc:creator>
      <dc:date>2019-09-17T16:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Please Can anyone answer this</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Can-anyone-answer-this/m-p/1628796#M446295</link>
      <description>&lt;P&gt;This may be crazy, but here are the Help links for Set and Let, maybe seeing the official doc will help solidify the delta, I know I struggled with them at first as well...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/Set.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/Set.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/Let.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/Let.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 20:18:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Can-anyone-answer-this/m-p/1628796#M446295</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-09-26T20:18:19Z</dc:date>
    </item>
  </channel>
</rss>

