<?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 Print variable value to msgbox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Print-variable-value-to-msgbox/m-p/726975#M260598</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a macro where i get a value from textbox to created variable. But if print it to msgbox i get an empty value though in variable overview i see that my variable get a value&lt;/P&gt;&lt;P&gt;what do i do wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set Psum=ActiveDocument.GetSheetObject( "TX01" )&lt;/P&gt;&lt;P&gt;ActiveDocument.Variables("vPsum").SetContent Psum.GetText, true&lt;/P&gt;&lt;P&gt;suma=vPsum&lt;/P&gt;&lt;P&gt;msgbox("Sum is " &amp;amp;suma)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jul 2014 14:58:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-22T14:58:24Z</dc:date>
    <item>
      <title>Print variable value to msgbox</title>
      <link>https://community.qlik.com/t5/QlikView/Print-variable-value-to-msgbox/m-p/726975#M260598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a macro where i get a value from textbox to created variable. But if print it to msgbox i get an empty value though in variable overview i see that my variable get a value&lt;/P&gt;&lt;P&gt;what do i do wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set Psum=ActiveDocument.GetSheetObject( "TX01" )&lt;/P&gt;&lt;P&gt;ActiveDocument.Variables("vPsum").SetContent Psum.GetText, true&lt;/P&gt;&lt;P&gt;suma=vPsum&lt;/P&gt;&lt;P&gt;msgbox("Sum is " &amp;amp;suma)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 14:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Print-variable-value-to-msgbox/m-p/726975#M260598</guid>
      <dc:creator />
      <dc:date>2014-07-22T14:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Print variable value to msgbox</title>
      <link>https://community.qlik.com/t5/QlikView/Print-variable-value-to-msgbox/m-p/726976#M260599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Store the value in a vb variable something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;set Psum=ActiveDocument.GetSheetObject( "TX01" )&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;strAmt = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Psum.GetText&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ActiveDocument.Variables("vPsum").SetContent strAmt, true&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;msgbox("Sum is " &amp;amp; strAmt)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 21:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Print-variable-value-to-msgbox/m-p/726976#M260599</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2014-07-22T21:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Print variable value to msgbox</title>
      <link>https://community.qlik.com/t5/QlikView/Print-variable-value-to-msgbox/m-p/726977#M260600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks it did the trick.&lt;/P&gt;&lt;P&gt;I wonder if it is possible to achieve the same result without using a variable vPsum just somehow get the object value straight in code&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 05:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Print-variable-value-to-msgbox/m-p/726977#M260600</guid>
      <dc:creator />
      <dc:date>2014-07-23T05:39:58Z</dc:date>
    </item>
  </channel>
</rss>

