<?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: Weird Subfield behavior in specific strings in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Weird-Subfield-behavior-in-specific-strings/m-p/2141784#M92877</link>
    <description>&lt;P&gt;It's kinda stupid, but I just found out it's a double space between the substrings. I actually considered that and tried using Trim(), but it didn't fix it because it won't trim inside spaces.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using Replace(field, '&amp;nbsp; ', ' ') did the job.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank god.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Nov 2023 23:40:00 GMT</pubDate>
    <dc:creator>pedrohenriqueperna</dc:creator>
    <dc:date>2023-11-27T23:40:00Z</dc:date>
    <item>
      <title>Weird Subfield behavior in specific strings</title>
      <link>https://community.qlik.com/t5/App-Development/Weird-Subfield-behavior-in-specific-strings/m-p/2141778#M92875</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I'm having a hard time to figure out why using SubField(x, ' ', y) will work for about 1000 strings but, +- 5 strings will give me a blank for some substrings.&lt;/P&gt;
&lt;P&gt;I'm writing something to deal with customer data and I'm looping through the customer substring names. Most iterations are working just fine, but these specific ones will show correctly the index number while debugging it, but as soon as the LET statement hits it adds a null to the variable, even tho it shows the correct index number. I tried to use the same expression in a different blank sheet and it worked perfectly, for some reason it doesn't work only in the main sheet...&lt;/P&gt;
&lt;P&gt;Here are some prints:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="therealdees_0-1701125036991.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120661iE0CDF3D49FC3D973/image-size/medium?v=v2&amp;amp;px=400" role="button" title="therealdees_0-1701125036991.png" alt="therealdees_0-1701125036991.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is the end of the loop where index 2 gave me correctly the word ASSIS, from the vClienteNome. In the next iteration the index will change to 3 and it's supposed to give me OLIVEIRA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="therealdees_1-1701125050364.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120662iCFAB3A9588DA58AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="therealdees_1-1701125050364.png" alt="therealdees_1-1701125050364.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;beginning the next iteration, nothing has changed yet, but at the next step the index will change to 3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="therealdees_2-1701125069645.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120663i8B29E8B92B3309D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="therealdees_2-1701125069645.png" alt="therealdees_2-1701125069645.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Index is now 3 and the next step should give me OLIVEIRA as it's the third word&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="therealdees_3-1701125094307.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120664iEC28025673C2E80F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="therealdees_3-1701125094307.png" alt="therealdees_3-1701125094307.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For some reason it gives me blank...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone explain me wtf I'm missing? &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 22:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Weird-Subfield-behavior-in-specific-strings/m-p/2141778#M92875</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2023-11-27T22:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Subfield behavior in specific strings</title>
      <link>https://community.qlik.com/t5/App-Development/Weird-Subfield-behavior-in-specific-strings/m-p/2141784#M92877</link>
      <description>&lt;P&gt;It's kinda stupid, but I just found out it's a double space between the substrings. I actually considered that and tried using Trim(), but it didn't fix it because it won't trim inside spaces.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using Replace(field, '&amp;nbsp; ', ' ') did the job.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank god.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 23:40:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Weird-Subfield-behavior-in-specific-strings/m-p/2141784#M92877</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2023-11-27T23:40:00Z</dc:date>
    </item>
  </channel>
</rss>

