<?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 Can I access a variable's predefined list through a macro? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-I-access-a-variable-s-predefined-list-through-a-macro/m-p/240027#M90584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set v = ActiveDocument.Variables("Variable1")&lt;/P&gt;&lt;P&gt;prop = v.GetProperties&lt;/P&gt;&lt;P&gt;dim list2&lt;/P&gt;&lt;P&gt;list2 = prop.PreDefinedList&lt;/P&gt;&lt;P&gt;msgbox(list2(0))&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Mar 2011 23:47:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-04T23:47:42Z</dc:date>
    <item>
      <title>Can I access a variable's predefined list through a macro?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-access-a-variable-s-predefined-list-through-a-macro/m-p/240026#M90583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;P&gt;I have variables with predefined lists. I would like to use that list in a macro, and I have no idea how to access it. I can see PreDefinedList as a property, and there is an example on how to set it, but I have no idea how to pull the data from it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 20:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-access-a-variable-s-predefined-list-through-a-macro/m-p/240026#M90583</guid>
      <dc:creator />
      <dc:date>2011-03-04T20:40:01Z</dc:date>
    </item>
    <item>
      <title>Can I access a variable's predefined list through a macro?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-access-a-variable-s-predefined-list-through-a-macro/m-p/240027#M90584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set v = ActiveDocument.Variables("Variable1")&lt;/P&gt;&lt;P&gt;prop = v.GetProperties&lt;/P&gt;&lt;P&gt;dim list2&lt;/P&gt;&lt;P&gt;list2 = prop.PreDefinedList&lt;/P&gt;&lt;P&gt;msgbox(list2(0))&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 23:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-access-a-variable-s-predefined-list-through-a-macro/m-p/240027#M90584</guid>
      <dc:creator />
      <dc:date>2011-03-04T23:47:42Z</dc:date>
    </item>
    <item>
      <title>Can I access a variable's predefined list through a macro?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-access-a-variable-s-predefined-list-through-a-macro/m-p/240028#M90585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My vb is terrible - I knew I was missing something straightforward.. That's exactly what I needed! Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 16:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-access-a-variable-s-predefined-list-through-a-macro/m-p/240028#M90585</guid>
      <dc:creator />
      <dc:date>2011-03-07T16:25:59Z</dc:date>
    </item>
  </channel>
</rss>

