<?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 Parsing Data - problems with variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Parsing-Data-problems-with-variables/m-p/197847#M57367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oop. Accidently deleted my peek. All good now...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD @1:n as configdata&lt;BR /&gt;FROM&lt;BR /&gt;E:\Projects\Pepsi\configdata\DashboardProperties.cfg&lt;BR /&gt;(fix, codepage is 1252, record is 32767 lines, no eof);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;let condata = peek('configdata',0);&lt;BR /&gt;let logins = textbetween(condata,'[Supervisors]','[');&lt;BR /&gt;let loginsnum = substringcount(logins,'=');&lt;BR /&gt;&lt;BR /&gt;let teststring = left(condata, 50);&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Nov 2010 01:32:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-11-23T01:32:25Z</dc:date>
    <item>
      <title>Parsing Data - problems with variables</title>
      <link>https://community.qlik.com/t5/QlikView/Parsing-Data-problems-with-variables/m-p/197846#M57366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a big text file with configuration data that i need to parse. I can read it into one attribute in a table in QV ( configdata ). I can also then display the contents of this attribute in a text box. I can apply string functions to the text and the results are what I would expect. My issue is that when i try and use these same string functions in the script as i start to parse the data, i get &amp;lt;NULL&amp;gt; as a result (or lack thereof lol).&lt;/P&gt;&lt;P&gt;Here's the script.&lt;/P&gt;&lt;P&gt;LOAD @1:n as configdata&lt;BR /&gt;FROM&lt;BR /&gt;E:\Projects\Pepsi\configdata\DashboardProperties.cfg&lt;BR /&gt;(fix, codepage is 1252, record is 32767 lines, no eof);&lt;BR /&gt;&lt;BR /&gt;let logins = textbetween(configdata,'[Supervisors]','[');&lt;BR /&gt;let loginsnum = substringcount(logins,'=');&lt;BR /&gt;let teststring = left(configdata, 50);&lt;/P&gt;&lt;P&gt;Here's the readout from debug stepping through script.&lt;/P&gt;&lt;P&gt;teststring &amp;lt;NULL&amp;gt;&lt;BR /&gt;configdata &amp;lt;NULL&amp;gt;&lt;BR /&gt;logins &amp;lt;NULL&amp;gt;&lt;BR /&gt;loginsnum &amp;lt;NULL&amp;gt;&lt;/P&gt;&lt;P&gt;Just want to say again that the above 3 statements work fine in a textbox after the script has run. Runtime, no dice. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 01:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parsing-Data-problems-with-variables/m-p/197846#M57366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-23T01:24:46Z</dc:date>
    </item>
    <item>
      <title>Parsing Data - problems with variables</title>
      <link>https://community.qlik.com/t5/QlikView/Parsing-Data-problems-with-variables/m-p/197847#M57367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oop. Accidently deleted my peek. All good now...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD @1:n as configdata&lt;BR /&gt;FROM&lt;BR /&gt;E:\Projects\Pepsi\configdata\DashboardProperties.cfg&lt;BR /&gt;(fix, codepage is 1252, record is 32767 lines, no eof);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;let condata = peek('configdata',0);&lt;BR /&gt;let logins = textbetween(condata,'[Supervisors]','[');&lt;BR /&gt;let loginsnum = substringcount(logins,'=');&lt;BR /&gt;&lt;BR /&gt;let teststring = left(condata, 50);&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 01:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parsing-Data-problems-with-variables/m-p/197847#M57367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-23T01:32:25Z</dc:date>
    </item>
  </channel>
</rss>

