<?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: Loop for Deleting Rows in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Loop-for-Deleting-Rows/m-p/525728#M75017</link>
    <description>&lt;P&gt;You might also try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;select where( dt_a:Column 7[N_loop] != "example 1" &amp;amp; dt_a:Column 7[N_loop] != "example 2" );
dt_a &amp;lt;&amp;lt; delete rows;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 25 Jul 2022 12:18:35 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2022-07-25T12:18:35Z</dc:date>
    <item>
      <title>Loop for Deleting Rows</title>
      <link>https://community.jmp.com/t5/Discussions/Loop-for-Deleting-Rows/m-p/525659#M75011</link>
      <description>&lt;P&gt;I have a loop for deleting rows where the column value isn't what I want&lt;/P&gt;&lt;P&gt;When I run the loop I keep the first set of rows meeting my specifications then it deletes all other rows. I am importing from an excel file and it has several rows in succession of what I want then a gap with other data then later another several. I only get the first set&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;N_loop = N Rows(dt_a);
i_loop = 0;

While(N_loop &amp;gt; i_loop,
	If( And(dt_a:Column 7[N_loop] != "example 1", dt_a:Column 7[N_loop] != "example 2"),
		dt_a &amp;lt;&amp;lt; Delete Row(N_loop)
	);
	N_loop = N_loop - 1
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:05:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Loop-for-Deleting-Rows/m-p/525659#M75011</guid>
      <dc:creator>Jemster</dc:creator>
      <dc:date>2023-06-09T17:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Loop for Deleting Rows</title>
      <link>https://community.jmp.com/t5/Discussions/Loop-for-Deleting-Rows/m-p/525664#M75012</link>
      <description>&lt;P&gt;The code works fine. I was searching in the wrong column&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 08:15:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Loop-for-Deleting-Rows/m-p/525664#M75012</guid>
      <dc:creator>Jemster</dc:creator>
      <dc:date>2022-07-25T08:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Loop for Deleting Rows</title>
      <link>https://community.jmp.com/t5/Discussions/Loop-for-Deleting-Rows/m-p/525728#M75017</link>
      <description>&lt;P&gt;You might also try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;select where( dt_a:Column 7[N_loop] != "example 1" &amp;amp; dt_a:Column 7[N_loop] != "example 2" );
dt_a &amp;lt;&amp;lt; delete rows;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Jul 2022 12:18:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Loop-for-Deleting-Rows/m-p/525728#M75017</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-07-25T12:18:35Z</dc:date>
    </item>
  </channel>
</rss>

