<?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: How to make the search 1D array function case insensitive for string array in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032173#M459727</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Christian_M wrote: &lt;BR /&gt;&lt;P&gt;Why are you using Search Array-Functions for strings when there are several Search String-Functions?&lt;/P&gt;&lt;P&gt;And can you please explain it a bit more in detail?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Agreed. For example &lt;STRONG&gt;Match Regular Expression&lt;/STRONG&gt; has an input for ignore case.</description>
    <pubDate>Tue, 01 Dec 2009 13:27:41 GMT</pubDate>
    <dc:creator>Broken_Arrow</dc:creator>
    <dc:date>2009-12-01T13:27:41Z</dc:date>
    <item>
      <title>How to make the search 1D array function case insensitive for string array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032147#M459712</link>
      <description>&lt;SPAN style="color: #000000; font-size: 12px; line-height: normal; white-space: pre" class="Apple-style-span"&gt;How to make the search 1D array function case insensitive for string array&lt;/SPAN&gt;</description>
      <pubDate>Tue, 01 Dec 2009 12:51:35 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032147#M459712</guid>
      <dc:creator>Flamboyant</dc:creator>
      <dc:date>2009-12-01T12:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the search 1D array function case insensitive for string array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032165#M459721</link>
      <description>&lt;P&gt;Hi cooldude,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;convert both (array and search string) to lowercase before using this function...&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2009 13:19:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032165#M459721</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2009-12-01T13:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the search 1D array function case insensitive for string array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032166#M459722</link>
      <description>&lt;P&gt;Why are you using Search Array-Functions for strings when there are several Search String-Functions?&lt;/P&gt;&lt;P&gt;And can you please explain it a bit more in detail?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2009 13:19:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032166#M459722</guid>
      <dc:creator>Christian Mergl</dc:creator>
      <dc:date>2009-12-01T13:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the search 1D array function case insensitive for string array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032173#M459727</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Christian_M wrote: &lt;BR /&gt;&lt;P&gt;Why are you using Search Array-Functions for strings when there are several Search String-Functions?&lt;/P&gt;&lt;P&gt;And can you please explain it a bit more in detail?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Agreed. For example &lt;STRONG&gt;Match Regular Expression&lt;/STRONG&gt; has an input for ignore case.</description>
      <pubDate>Tue, 01 Dec 2009 13:27:41 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032173#M459727</guid>
      <dc:creator>Broken_Arrow</dc:creator>
      <dc:date>2009-12-01T13:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the search 1D array function case insensitive for string array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032236#M459749</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Christian_M wrote: &lt;BR /&gt;&lt;P&gt;Why are you using Search Array-Functions for strings when there are several Search String-Functions?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, the user did say they have a string &lt;STRONG&gt;array&lt;/STRONG&gt;, so....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, they could use the Array to Spreadsheet String so then they could use the string search functions, but that would embed undesired characters in the string since the Array to Spreadsheet String does not accept an empty string as a delimiter.&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2009 14:50:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032236#M459749</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2009-12-01T14:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the search 1D array function case insensitive for string array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032274#M459766</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;smercurio_fc wrote: &lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Christian_M wrote: &lt;BR /&gt;&lt;P&gt;Why are you using Search Array-Functions for strings when there are several Search String-Functions?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, the user did say they have a string &lt;STRONG&gt;array&lt;/STRONG&gt;, so....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, they could use the Array to Spreadsheet String so then they could use the string search functions, but that would embed undesired characters in the string since the Array to Spreadsheet String does not accept an empty string as a delimiter.&amp;nbsp; &lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I assumed the user would throw the function into a for loop. For that matter, you still have to use a for loop with&amp;nbsp;"Search 1D Array" if you want to return all elements found (or use OpenG's Search Array which&amp;nbsp;functions like a&amp;nbsp;"Search&amp;nbsp;Array Until Done").&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Broken Arrow on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 12-01-2009&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 09:31 AM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Dec 2009 15:31:35 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032274#M459766</guid>
      <dc:creator>Broken_Arrow</dc:creator>
      <dc:date>2009-12-01T15:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the search 1D array function case insensitive for string array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032294#M459772</link>
      <description>In my post above, I should of said &lt;STRONG&gt;while loop&lt;/STRONG&gt; where I said &lt;STRONG&gt;for loop&lt;/STRONG&gt;. (for loop would work but&amp;nbsp;while loop would be more conventional).</description>
      <pubDate>Tue, 01 Dec 2009 15:46:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032294#M459772</guid>
      <dc:creator>Broken_Arrow</dc:creator>
      <dc:date>2009-12-01T15:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the search 1D array function case insensitive for string array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032319#M459780</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;smercurio_fc wrote: &lt;BR /&gt;&lt;P&gt;Of course, they could use the Array to Spreadsheet String so then they could use the string search functions, but that would embed undesired characters in the string since the Array to Spreadsheet String does not accept an empty string as a delimiter.&amp;nbsp; &lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Well, a substitute for the nonexistent "delimiter-free array to spreadsheet string" is a simple "concatenate strings" of size=1. Try it!&lt;/P&gt;&lt;P&gt;Still, since strings are variable lenght, we would lose all information on index position, so this method would only partially&amp;nbsp;work for simple questions such as "s there a match". It can also give false positives, e.g. if the search string&amp;nbsp;matched the tail of one string concatenated with the head of the next element.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If all the OP is looking for is a case insensitive match of an entire array element, I would go with Gerd's suggestion above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2009 16:09:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032319#M459780</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2009-12-01T16:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the search 1D array function case insensitive for string array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032327#M459782</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;altenbach wrote: &lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;smercurio_fc wrote: &lt;BR /&gt;&lt;P&gt;Of course, they could use the Array to Spreadsheet String so then they could use the string search functions, but that would embed undesired characters in the string since the Array to Spreadsheet String does not accept an empty string as a delimiter.&amp;nbsp; &lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Well, a substitute for the nonexistent "delimiter-free array to spreadsheet string" is a simple "concatenate strings" of size=1. Try it!&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt; Yeah, I know about this. I was just making a point about the fact that the source is an array, and not a string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I was taking a pot-shot at NI over that function.&amp;nbsp;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://ni.lithium.com/i/smilies/16x16_smiley-very-happy.gif" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2009 16:16:01 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032327#M459782</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2009-12-01T16:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the search 1D array function case insensitive for string array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032333#M459784</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;smercurio_fc wrote: &lt;BR /&gt;&lt;P&gt;And I was taking a pot-shot at NI over that function.&amp;nbsp;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://ni.lithium.com/i/smilies/16x16_smiley-very-happy.gif" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt; &lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Allow-empty-string-as-spreadsheet-delimiter/idi-p/949310#A1091" target="_self"&gt;Me too!&lt;/A&gt; &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2009 16:20:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/1032333#M459784</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2009-12-01T16:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the search 1D array function case insensitive for string array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/3818297#M1078768</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I know this thread is dead for 9yrs, but&amp;nbsp;&lt;/SPAN&gt;I was not satisfied with the answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See attached solution using OpenG tools&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 12:17:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/3818297#M1078768</guid>
      <dc:creator>SGIE</dc:creator>
      <dc:date>2018-07-18T12:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the search 1D array function case insensitive for string array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/3818344#M1078786</link>
      <description>&lt;P&gt;Since you revived the thread, I think most users should prefer the earlier approaches over yours.&amp;nbsp; Sorting a string array can be expensive and is generally not needed or even particularly helpful to the goal of string matching.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(This is distinct from the way that &lt;EM&gt;maintaining&lt;/EM&gt;&amp;nbsp;an array in sorted order&amp;nbsp;&lt;EM&gt;might&lt;/EM&gt; be useful to support lots of lookups using a binary search algorithm.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Kevin P&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 13:26:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/3818344#M1078786</guid>
      <dc:creator>Kevin_Price</dc:creator>
      <dc:date>2018-07-18T13:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the search 1D array function case insensitive for string array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/3818374#M1078803</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/11892"&gt;@Kevin_Price&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;(This is distinct from the way that &lt;EM&gt;maintaining&lt;/EM&gt;&amp;nbsp;an array in sorted order&amp;nbsp;&lt;EM&gt;might&lt;/EM&gt; be useful to support lots of lookups using a binary search algorithm.)&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Variant Attributes does this for you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as the searching in a text array, I have a tendency of using Trim Whitespace followed by a To Upper.&amp;nbsp; I trim the whitespace because I have seen too many users accidentally add in a space or end of line to the input and then complain to me the strings won't match.&amp;nbsp; To Upper or To Lower: you can use either one as long as you are consistent.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 13:55:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-make-the-search-1D-array-function-case-insensitive-for/m-p/3818374#M1078803</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2018-07-18T13:55:03Z</dc:date>
    </item>
  </channel>
</rss>

