<?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 AW:Re: moving variables by a Button in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/moving-variables-by-a-Button/m-p/204753#M61515</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;I do not undertsand in 1) where you say the debugger wont start? Are you putting breakpoints on the lines of code or something? If its just running without any displays that probably means its running ok.&lt;/P&gt;&lt;P&gt;in 2) - you cannot use SET for a variable (set is a container for objects/properties). To set a local variable in VBS you just say&lt;/P&gt;&lt;P&gt;dummy1 = 1&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jun 2010 10:03:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-30T10:03:19Z</dc:date>
    <item>
      <title>moving variables by a Button</title>
      <link>https://community.qlik.com/t5/QlikView/moving-variables-by-a-Button/m-p/204750#M61512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;today I have another question: How can I move a number of variables by a button? With my knowledge I can add Actions to the button, but I have to move 12 variables.... (eg. vVar1 --&amp;gt; vVar0, vVar2 --&amp;gt; vVar1, vVar3 --&amp;gt; vVar2, vVar4 --&amp;gt; vVar3, etc...)&lt;/P&gt;&lt;P&gt;Is there a quicker way to do that? Can i do that by a macro? How could I get the variables in the macro?&lt;/P&gt;&lt;P&gt;thanks &amp;amp; best regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 13:06:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/moving-variables-by-a-Button/m-p/204750#M61512</guid>
      <dc:creator />
      <dc:date>2010-06-28T13:06:33Z</dc:date>
    </item>
    <item>
      <title>moving variables by a Button</title>
      <link>https://community.qlik.com/t5/QlikView/moving-variables-by-a-Button/m-p/204751#M61513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;Actions should be far more efficent than macros which result in the purging of caches and so on, so should always be used in preference.&lt;/P&gt;&lt;P&gt;But.....&lt;/P&gt;&lt;P&gt;As actions are all fired at the same time (if only Qliktech would clarify this!) it is possible that any new value of the variable will not be in place before it is moved elsewhere (for example vVar2 could be either its current value or have become that of vVar3) I think you should use a macro instead, like this:&lt;/P&gt;&lt;P&gt;set doc=ActiveDocument&lt;BR /&gt;Var1 = doc.Variables("vVar1").GetContent.String&lt;BR /&gt;doc.Variables("vVar0").SetContent Var1, false&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 14:09:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/moving-variables-by-a-Button/m-p/204751#M61513</guid>
      <dc:creator />
      <dc:date>2010-06-28T14:09:00Z</dc:date>
    </item>
    <item>
      <title>AW:Re: moving variables by a Button</title>
      <link>https://community.qlik.com/t5/QlikView/moving-variables-by-a-Button/m-p/204752#M61514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gordon,&lt;/P&gt;&lt;P&gt;thanks for your help. I'm trying to make it with a macro. But I got two problems. Perhaps you can assist another time?&lt;/P&gt;&lt;P&gt;1) If I code following statement...&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sub NewMonth&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ActiveDocument.Sheets("Basis").Activate&lt;BR /&gt;set doc=ActiveDocument&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;vDatum0 = doc.Variables("vDatum0").GetContent.String&lt;BR /&gt;vTask0 = doc.Variables("vTask0").GetContent.String&lt;BR /&gt;vVers0 = doc.Variables("vVers0").GetContent.String&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;vDatum1 = doc.Variables("vDatum1").GetContent.String&lt;BR /&gt;vTask1 = doc.Variables("vTask1").GetContent.String&lt;BR /&gt;vVers1 = doc.Variables("vVers1").GetContent.String&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;end sub&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;...my Debugger won't start. If I do some Dummy Variables like ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sub NeuerMonat&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ActiveDocument.Sheets("Basis").Activate&lt;BR /&gt;set doc=ActiveDocument&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;set dummy1 = 1&lt;BR /&gt;set dummy2 =2&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;vDatum0 = doc.Variables("vDatum0").GetContent.String&lt;BR /&gt;vTask0 = doc.Variables("vTask0").GetContent.String&lt;BR /&gt;vVers0 = doc.Variables("vVers0").GetContent.String&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;vDatum1 = doc.Variables("vDatum1").GetContent.String&lt;BR /&gt;vTask1 = doc.Variables("vTask1").GetContent.String&lt;BR /&gt;vVers1 = doc.Variables("vVers1").GetContent.String&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;end sub&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;... now my Debugger starts, and I get a Message "Objekt erforderlich: '[string: "1"]' . What did I make wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;If I add the Macro 'NeuerMonat' to my Button and press the Button, the Macro-editor opens. The Macro did'nt start, even the debugger runs without any error.&lt;/P&gt;&lt;P&gt;do you or someone else have any ideas? I'm using QlikView 9.00.7469.8 SR4&lt;/P&gt;&lt;P&gt;many thanks &amp;amp; best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 12:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/moving-variables-by-a-Button/m-p/204752#M61514</guid>
      <dc:creator />
      <dc:date>2010-06-29T12:23:00Z</dc:date>
    </item>
    <item>
      <title>AW:Re: moving variables by a Button</title>
      <link>https://community.qlik.com/t5/QlikView/moving-variables-by-a-Button/m-p/204753#M61515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;I do not undertsand in 1) where you say the debugger wont start? Are you putting breakpoints on the lines of code or something? If its just running without any displays that probably means its running ok.&lt;/P&gt;&lt;P&gt;in 2) - you cannot use SET for a variable (set is a container for objects/properties). To set a local variable in VBS you just say&lt;/P&gt;&lt;P&gt;dummy1 = 1&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2010 10:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/moving-variables-by-a-Button/m-p/204753#M61515</guid>
      <dc:creator />
      <dc:date>2010-06-30T10:03:19Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: moving variables by a Button</title>
      <link>https://community.qlik.com/t5/QlikView/moving-variables-by-a-Button/m-p/204754#M61516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gordon,&lt;/P&gt;&lt;P&gt;thanks for answering. While the debugger hasn't start, I didn't tried my macro at runtime. But what should I say.... It works....&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I do not undertsand in 1) where you say the debugger wont start? Are you putting breakpoints on the lines of code or something? If its just running without any displays that probably means its running ok.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Normaly I should run my macro step by step in debugging mode, even if there is no error. But I didnt could do this if I have no dummies...&lt;/P&gt;&lt;P&gt;Anyway, I deleted the two dummies and have runned my macro without debuggung... it works fine. Thousand thanks for your help.&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2010 10:12:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/moving-variables-by-a-Button/m-p/204754#M61516</guid>
      <dc:creator />
      <dc:date>2010-06-30T10:12:00Z</dc:date>
    </item>
  </channel>
</rss>

