<?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 Delete a text box and a button from a lineup box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Delete-a-text-box-and-a-button-from-a-lineup-box/m-p/46079#M26271</link>
    <description>&lt;P&gt;I'm trying to delete both the button itself and the associated text box before it. So when I cilck button nr 3 I want text nr 3 to also be deleted. Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nr=5;
new window("Button test",
	Lineuplist=Lineup Box( N Col( 2 ),
		
	)
);
For(i=1,i&amp;lt;=nr,i++,
	Lineuplist &amp;lt;&amp;lt; append(textbox("Text nr "||char(i)));
	Lineuplist &amp;lt;&amp;lt; append(
		buttonbox("Button nr "||char(i),
			&amp;lt;&amp;lt; Set Function(
				Function({this},
					this &amp;lt;&amp;lt; delete;
				)
			)
		);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 Oct 2017 15:36:25 GMT</pubDate>
    <dc:creator>pauldeen</dc:creator>
    <dc:date>2017-10-18T15:36:25Z</dc:date>
    <item>
      <title>Delete a text box and a button from a lineup box</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-a-text-box-and-a-button-from-a-lineup-box/m-p/46079#M26271</link>
      <description>&lt;P&gt;I'm trying to delete both the button itself and the associated text box before it. So when I cilck button nr 3 I want text nr 3 to also be deleted. Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nr=5;
new window("Button test",
	Lineuplist=Lineup Box( N Col( 2 ),
		
	)
);
For(i=1,i&amp;lt;=nr,i++,
	Lineuplist &amp;lt;&amp;lt; append(textbox("Text nr "||char(i)));
	Lineuplist &amp;lt;&amp;lt; append(
		buttonbox("Button nr "||char(i),
			&amp;lt;&amp;lt; Set Function(
				Function({this},
					this &amp;lt;&amp;lt; delete;
				)
			)
		);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Oct 2017 15:36:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-a-text-box-and-a-button-from-a-lineup-box/m-p/46079#M26271</guid>
      <dc:creator>pauldeen</dc:creator>
      <dc:date>2017-10-18T15:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a text box and a button from a lineup box</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-a-text-box-and-a-button-from-a-lineup-box/m-p/46108#M26281</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/92"&gt;@pauldeen&lt;/a&gt;&lt;/P&gt;&lt;PRE&gt;nr=5;
new window("Button test",
	Lineuplist=Lineup Box( N Col( 2 ))
	      ); 
);
For(i=1,i&amp;lt;=nr,i++,
	Lineuplist &amp;lt;&amp;lt; append(textbox("Text nr "||char(i)));
	Lineuplist &amp;lt;&amp;lt; append(
		buttonbox("Button nr "||char(i),
			&amp;lt;&amp;lt; Set Function(
				Function({this},
					this &amp;lt;&amp;lt; delete;
				)
			)
		);
	);
	Lineuplist[Text Box(i)] &amp;lt;&amp;lt; delete ; // this is the piece of code which will do what you are after . Insert it where you delete the button 
);&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Oct 2017 21:25:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-a-text-box-and-a-button-from-a-lineup-box/m-p/46108#M26281</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2017-10-18T21:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a text box and a button from a lineup box</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-a-text-box-and-a-button-from-a-lineup-box/m-p/46113#M26285</link>
      <description>&lt;P&gt;Here is a piece of code that works:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nr=5;
new window("Button test",
	Lineuplist=Lineup Box( N Col( 2 ),
		
	)
);
For(i=1,i&amp;lt;=nr,i++,
	Lineuplist &amp;lt;&amp;lt; append(textbox("Text nr "||char(i)));
	Lineuplist &amp;lt;&amp;lt; append(
		buttonbox("Button nr "||char(i),
			&amp;lt;&amp;lt; Set Function(
				Function({this},
					ps=this&amp;lt;&amp;lt;sib;
					par=this&amp;lt;&amp;lt;parent;
					buttonName=this&amp;lt;&amp;lt;get button name;
					buttonNo=regex(buttonName,".*?([0-9]*)$","\1");
					locator=eval insert("//TextBox[text()='Text nr ^buttonNo^']");
					textBox=par&amp;lt;&amp;lt;xpath(locator);
					textBox&amp;lt;&amp;lt;delete;
					this&amp;lt;&amp;lt;delete;
				)
			)
		);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Oct 2017 22:12:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-a-text-box-and-a-button-from-a-lineup-box/m-p/46113#M26285</guid>
      <dc:creator>thomasz</dc:creator>
      <dc:date>2017-10-18T22:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a text box and a button from a lineup box</title>
      <link>https://community.jmp.com/t5/Discussions/Delete-a-text-box-and-a-button-from-a-lineup-box/m-p/46135#M26297</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 10:52:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delete-a-text-box-and-a-button-from-a-lineup-box/m-p/46135#M26297</guid>
      <dc:creator>pauldeen</dc:creator>
      <dc:date>2017-10-19T10:52:32Z</dc:date>
    </item>
  </channel>
</rss>

