<?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: vba to populate an array in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855262#M657591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to declare sitearray as ARRAY and sometimes to dimension it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim sitearray(), z 'another ...&lt;/P&gt;&lt;P&gt;redim sitearray(9) 'started with 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2015 13:14:59 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-04-30T13:14:59Z</dc:date>
    <item>
      <title>vba to populate an array</title>
      <link>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855259#M657588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;am trying to populate an array , i can do it manually like this &lt;/P&gt;&lt;P&gt;sitearray=Array(varsplit(1),varsplit(2) ,&lt;SPAN style="font-size: 13.3333330154419px;"&gt;varsplit(3),&lt;SPAN style="font-size: 13.3333330154419px;"&gt;varsplit(4) ...........&lt;/SPAN&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it works &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i populate the array using a loop statement&lt;/P&gt;&lt;P&gt;i tried &lt;/P&gt;&lt;P&gt;for z=1 to 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;sitearray=Array(varsplit(z)&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Next z &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i get an expected end of statement error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please assist me with the correct syntax &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 12:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855259#M657588</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2015-04-30T12:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: vba to populate an array</title>
      <link>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855260#M657589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for z=1 to 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;sitearray(z) = varsplit(z)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Next z &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://windowsitpro.com/article/vbscript/understanding-vbscript-arrays-5627" title="http://windowsitpro.com/article/vbscript/understanding-vbscript-arrays-5627"&gt;Understanding VBScript: Arrays | Scripting content from Windows IT Pro&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 12:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855260#M657589</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-04-30T12:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: vba to populate an array</title>
      <link>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855261#M657590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;even if i try a &lt;/P&gt;&lt;P&gt; dim &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;sitearray&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sitearray(0)=Array('aaaa'&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) or a &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sitearray(1)=Array('aaaa'&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&amp;nbsp;&amp;nbsp; i get a type mismatch error &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vba sucks &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 12:57:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855261#M657590</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2015-04-30T12:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: vba to populate an array</title>
      <link>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855262#M657591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to declare sitearray as ARRAY and sometimes to dimension it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim sitearray(), z 'another ...&lt;/P&gt;&lt;P&gt;redim sitearray(9) 'started with 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 13:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855262#M657591</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-04-30T13:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: vba to populate an array</title>
      <link>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855263#M657592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus , i marked your&amp;nbsp; response as helpful as the url gave me insight into static vs dynamic arrays , i can now populate arrays but not with a loop , for now il&amp;nbsp; copy and paste 324 time and fill in the numbers to populate the array .&lt;/P&gt;&lt;P&gt;Im certain theres an easier way to do it with a loop , i think my for statement might be the issue now .&lt;/P&gt;&lt;P&gt;Dim sitearray(324)&lt;/P&gt;&lt;P&gt;'Dim z&lt;/P&gt;&lt;P&gt;&amp;nbsp; sitearray(0)=varsplit(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; sitearray(1)=varsplit(2)&lt;/P&gt;&lt;P&gt;&amp;nbsp; sitearray(2)=varsplit(3)&lt;/P&gt;&lt;P&gt;........................&lt;/P&gt;&lt;P&gt;until sitearray(323)=&lt;SPAN style="font-size: 13.3333330154419px;"&gt;varsplit(323)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 13:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855263#M657592</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2015-04-30T13:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: vba to populate an array</title>
      <link>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855264#M657593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How will be varsplit filled - is this an array, too? Maybe you posted a little more from your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 13:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855264#M657593</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-04-30T13:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: vba to populate an array</title>
      <link>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855265#M657594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Option Explicit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim vara&lt;/P&gt;&lt;P&gt;vara= ActiveDocument.Variables("vAlias").getcontent.string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Split the variable int its parts&lt;/P&gt;&lt;P&gt;Dim varsplit&lt;/P&gt;&lt;P&gt;varsplit=Split(vara,",")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Dim sitearray(3)&lt;/P&gt;&lt;P&gt;'Dim z&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'sitearray(0)=varsplit(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'sitearray(1)=varsplit(2)&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'sitearray(2)=varsplit(3)&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'sitearray(3)=varsplit(4)&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'sitearray(3)=varsplit(4)&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'sitearray(3)=varsplit(4)&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'sitearray(3)=varsplit(4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Msgbox(sitearray(0))&lt;/P&gt;&lt;P&gt;Sub GenerateBarChart()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i can populate the array this way but not with a for loop statement as stated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 13:45:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855265#M657594</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2015-04-30T13:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: vba to populate an array</title>
      <link>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855266#M657595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first time am trying a loop statement in vba &lt;/P&gt;&lt;P&gt;even if i try &lt;/P&gt;&lt;P&gt;For i=1 to 10 &lt;/P&gt;&lt;P&gt; msgbox("aaaaaa")&lt;/P&gt;&lt;P&gt;Next i&lt;/P&gt;&lt;P&gt;i get an expected end of statement error on the next i line &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 13:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855266#M657595</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2015-04-30T13:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: vba to populate an array</title>
      <link>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855267#M657596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out&amp;nbsp; , its &lt;/P&gt;&lt;P&gt;For z=1 to 10 &lt;/P&gt;&lt;P&gt;&amp;nbsp; statements&lt;/P&gt;&lt;P&gt;next &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its just next , not next Z which gives an error , seems that vba used in those excel sites is different from the vba used in&amp;nbsp; Qlikview ,not sure why .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 13:59:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855267#M657596</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2015-04-30T13:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: vba to populate an array</title>
      <link>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855268#M657597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim sitearray(), varsplit, vara, arrCount, i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vara= ActiveDocument.Variables("vAlias").getcontent.string&lt;/P&gt;&lt;P&gt;varsplit=Split(vara,",")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arrCount = ubound(varsplit)&lt;/P&gt;&lt;P&gt;redim sitearray(arrCount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i = 0 to arrCount - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sitearray(i) = varsplit(i)&lt;/P&gt;&lt;P&gt;next ' without i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But why sitearray if varsplit contained the same?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 13:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855268#M657597</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-04-30T13:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: vba to populate an array</title>
      <link>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855269#M657598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is not VBA is VBS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 14:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vba-to-populate-an-array/m-p/855269#M657598</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-04-30T14:30:16Z</dc:date>
    </item>
  </channel>
</rss>

