<?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: Step through Field Values without using arrays in VBScript in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Step-through-Field-Values-without-using-arrays-in-VBScript/m-p/514677#M1131463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Above code works like a charm in Subroutines, but doesn't in User Defined Function (UDF);&lt;STRONG&gt; if the UDF is used in the Script. In my case I need to use the UDF in Load Script&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;And, this is in VBScript or Macros of QlikView,&lt;STRONG&gt; not in Script.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please make up your mind about what you want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the UI use vbscript with arrays. In the script use a for loop with fieldvaluecount. Check the help file for how to use the MsgBox function in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Dec 2013 15:44:22 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-12-02T15:44:22Z</dc:date>
    <item>
      <title>Step through Field Values without using arrays in VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Step-through-Field-Values-without-using-arrays-in-VBScript/m-p/514674#M1131460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code we could get in API Guide, in order to loop through values in a field "Month".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sub MonthValues&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set &lt;SPAN style="color: #ff0000;"&gt;ArrayVal&lt;/SPAN&gt;=ActiveDocument.Fields("Month").GetPossibleValues&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for i=0 to &lt;SPAN style="color: #ff0000;"&gt;ArrayVal&lt;/SPAN&gt;.Count-1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox(&lt;SPAN style="color: #ff0000;"&gt;ArrayVal&lt;/SPAN&gt;.Item(i).Text)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;next&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End Sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know if there is another way to get similar functionality, without using arrays in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above code works like a charm in Subroutines, but doesn't in User Defined Function (UDF); if the UDF is used in the Script. In my case I need to use the UDF in Load Script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you help in advance,&lt;/P&gt;&lt;P&gt;JP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 12:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Step-through-Field-Values-without-using-arrays-in-VBScript/m-p/514674#M1131460</guid>
      <dc:creator>jayaramp</dc:creator>
      <dc:date>2013-12-02T12:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Step through Field Values without using arrays in VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Step-through-Field-Values-without-using-arrays-in-VBScript/m-p/514675#M1131461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for i =1 to fieldvaluecount('Month')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //do stuff&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 14:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Step-through-Field-Values-without-using-arrays-in-VBScript/m-p/514675#M1131461</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-12-02T14:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Step through Field Values without using arrays in VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Step-through-Field-Values-without-using-arrays-in-VBScript/m-p/514676#M1131462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's understood, could you help with code in msgbox please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, this is in VBScript or Macros of QlikView, not in Script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 14:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Step-through-Field-Values-without-using-arrays-in-VBScript/m-p/514676#M1131462</guid>
      <dc:creator>jayaramp</dc:creator>
      <dc:date>2013-12-02T14:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Step through Field Values without using arrays in VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Step-through-Field-Values-without-using-arrays-in-VBScript/m-p/514677#M1131463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Above code works like a charm in Subroutines, but doesn't in User Defined Function (UDF);&lt;STRONG&gt; if the UDF is used in the Script. In my case I need to use the UDF in Load Script&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;And, this is in VBScript or Macros of QlikView,&lt;STRONG&gt; not in Script.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please make up your mind about what you want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the UI use vbscript with arrays. In the script use a for loop with fieldvaluecount. Check the help file for how to use the MsgBox function in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 15:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Step-through-Field-Values-without-using-arrays-in-VBScript/m-p/514677#M1131463</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-12-02T15:44:22Z</dc:date>
    </item>
  </channel>
</rss>

