<?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: Load script run fine but having red highlights in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467797#M99397</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/246109"&gt;@TcnCunha_M&lt;/a&gt;, thanks for the reply. I checked and there's no missing ';'. The script can run and load data just fine.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jul 2024 00:17:12 GMT</pubDate>
    <dc:creator>poklegoguy</dc:creator>
    <dc:date>2024-07-04T00:17:12Z</dc:date>
    <item>
      <title>Load script run fine but having red highlights</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467485#M99342</link>
      <description>&lt;P&gt;My load script ran fine and the data are being loaded correctly. However, there's one section in the script where the scripts are in red highlight and I can't seems to fathom what's exactly went wrong, I think its a 'best practice' kind of problem? Can anyone help me check what's wrong with my script?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 952px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168818i405C19BBD7219228/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Appreciate any help!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 08:05:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467485#M99342</guid>
      <dc:creator>poklegoguy</dc:creator>
      <dc:date>2024-07-03T08:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Load script run fine but having red highlights</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467643#M99364</link>
      <description>&lt;P&gt;Insert spaces between the quotation marks, where the parameter is passed in the PurgeChar function.&lt;BR /&gt;&lt;BR /&gt;PurgeChar([CustomerCode],' &amp;nbsp;'' &amp;nbsp;')&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- Matheus&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 13:08:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467643#M99364</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2024-07-03T13:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load script run fine but having red highlights</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467656#M99371</link>
      <description>&lt;P&gt;check in the script above if you not missing any ";"&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 13:23:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467656#M99371</guid>
      <dc:creator>TcnCunha_M</dc:creator>
      <dc:date>2024-07-03T13:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Load script run fine but having red highlights</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467790#M99395</link>
      <description>&lt;P&gt;It may be from a previous Section of your code since everything is red. can you confirm that please?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 21:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467790#M99395</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-07-03T21:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Load script run fine but having red highlights</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467794#M99396</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/149113"&gt;@MatheusC&lt;/a&gt;, thanks for the reply. Adding spaces does cleared out the red highlights, but doesn't this means it will remove empty spaces in the string as well? What if my main purpose is just to remove any quotation found in the string? For example, if my string is '123 '456 and I want the output to be 123 456, doesn't&amp;nbsp;&lt;SPAN&gt;PurgeChar([CustomerCode],' &amp;nbsp;'' &amp;nbsp;') removes the empty space as well and results in 123456?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 00:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467794#M99396</guid>
      <dc:creator>poklegoguy</dc:creator>
      <dc:date>2024-07-04T00:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Load script run fine but having red highlights</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467797#M99397</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/246109"&gt;@TcnCunha_M&lt;/a&gt;, thanks for the reply. I checked and there's no missing ';'. The script can run and load data just fine.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 00:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467797#M99397</guid>
      <dc:creator>poklegoguy</dc:creator>
      <dc:date>2024-07-04T00:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Load script run fine but having red highlights</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467799#M99398</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22035"&gt;@marksouzacosta&lt;/a&gt;, thanks for the reply. Doesn't seems to be the case since the script run and load data fine, and only this section has red highlights on the code. I think maybe its the single quotations configuration in the PurgeChar function?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 00:19:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467799#M99398</guid>
      <dc:creator>poklegoguy</dc:creator>
      <dc:date>2024-07-04T00:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Load script run fine but having red highlights</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467806#M99400</link>
      <description>&lt;P&gt;Maybe. What platform are you using? QlikView or Qlik Sense? And which version? Maybe this is just a visual bug. Can you share the script with us please?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 01:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467806#M99400</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-07-04T01:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Load script run fine but having red highlights</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467812#M99402</link>
      <description>&lt;P&gt;Qlik Sense, on the latest May update. The whole script is fine just except for this particular section and the script snippet I shared in the post. I attached a sample script with the exact same problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 02:13:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467812#M99402</guid>
      <dc:creator>poklegoguy</dc:creator>
      <dc:date>2024-07-04T02:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Load script run fine but having red highlights</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467833#M99405</link>
      <description>&lt;P&gt;Yes, is the PurgeChar. I replaced the double single quotes for anything else and the red part disappeared. It is just a bug in the code editor.&lt;/P&gt;
&lt;P&gt;I'm using Qlik Cloud - it looks a little better:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marksouzacosta_0-1720066638343.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168873i1C8395E69C0A5F21/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marksouzacosta_0-1720066638343.png" alt="marksouzacosta_0-1720066638343.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So, in this case you can replace the '' with Chr(39) and it will look fine. Same result but looking better!&lt;/P&gt;
&lt;PRE&gt;Test:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;TestString,&lt;BR /&gt;"'12345,'12356",&lt;BR /&gt;"'14'535,'5434",&lt;BR /&gt;"'890'39,'3453",&lt;BR /&gt;"''67''39','3456",&lt;BR /&gt;"'123,'123"&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;PurgeTest:&lt;BR /&gt;Load&lt;BR /&gt;&lt;SPAN&gt; *,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; SubField(PurgeChar(TestString, Chr(39)), ',', 1) as PurgeString&lt;BR /&gt;RESIDENT Test;&lt;BR /&gt;&lt;BR /&gt;DROP TABLE Test;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Mark Costa&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 04:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467833#M99405</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-07-04T04:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Load script run fine but having red highlights</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467904#M99415</link>
      <description>&lt;P&gt;This worked flawlessly! Thank you so much!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 07:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-run-fine-but-having-red-highlights/m-p/2467904#M99415</guid>
      <dc:creator>poklegoguy</dc:creator>
      <dc:date>2024-07-04T07:55:04Z</dc:date>
    </item>
  </channel>
</rss>

