<?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 Need to remove part of a string starting with ( in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Need-to-remove-part-of-a-string-starting-with/m-p/109830#M39723</link>
    <description>&lt;P&gt;I have a string in a cell that has the format AB1234(Name).&amp;nbsp; I would like to remove everthing past the 4.&amp;nbsp; The result would be each cell under the column LOT_NUMBER would be AB1234.&amp;nbsp; I have tried the word function ;&amp;nbsp; for each row(word(1,:LOT_NUMBER,"("));&amp;nbsp; This did not work.&amp;nbsp; Can you please give me a recommendation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wayne&lt;/P&gt;</description>
    <pubDate>Mon, 11 Feb 2019 13:23:01 GMT</pubDate>
    <dc:creator>wjalford</dc:creator>
    <dc:date>2019-02-11T13:23:01Z</dc:date>
    <item>
      <title>Need to remove part of a string starting with (</title>
      <link>https://community.jmp.com/t5/Discussions/Need-to-remove-part-of-a-string-starting-with/m-p/109830#M39723</link>
      <description>&lt;P&gt;I have a string in a cell that has the format AB1234(Name).&amp;nbsp; I would like to remove everthing past the 4.&amp;nbsp; The result would be each cell under the column LOT_NUMBER would be AB1234.&amp;nbsp; I have tried the word function ;&amp;nbsp; for each row(word(1,:LOT_NUMBER,"("));&amp;nbsp; This did not work.&amp;nbsp; Can you please give me a recommendation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wayne&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 13:23:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-to-remove-part-of-a-string-starting-with/m-p/109830#M39723</guid>
      <dc:creator>wjalford</dc:creator>
      <dc:date>2019-02-11T13:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need to remove part of a string starting with (</title>
      <link>https://community.jmp.com/t5/Discussions/Need-to-remove-part-of-a-string-starting-with/m-p/109831#M39724</link>
      <description>&lt;P&gt;You do not store the result of each iteration where you could see it. How do you know it is not working?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 13:29:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-to-remove-part-of-a-string-starting-with/m-p/109831#M39724</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-02-11T13:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need to remove part of a string starting with (</title>
      <link>https://community.jmp.com/t5/Discussions/Need-to-remove-part-of-a-string-starting-with/m-p/109834#M39727</link>
      <description>&lt;P&gt;As Mark indicates, you need to replace the value in the column, not just find it&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt; for each row(
     :LOT_NUMBER = word(1,:LOT_NUMBER,"(")
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Feb 2019 13:37:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-to-remove-part-of-a-string-starting-with/m-p/109834#M39727</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-02-11T13:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need to remove part of a string starting with (</title>
      <link>https://community.jmp.com/t5/Discussions/Need-to-remove-part-of-a-string-starting-with/m-p/109835#M39728</link>
      <description>&lt;P&gt;Your code partially works, it just lacks the assignment. Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For Each Row(:LOT_NUMBER = Word(1, :LOT_NUMBER, "("));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 13:39:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-to-remove-part-of-a-string-starting-with/m-p/109835#M39728</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2019-02-11T13:39:18Z</dc:date>
    </item>
  </channel>
</rss>

