<?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: I have a &amp;quot;Do you want to quit button&amp;quot; with &amp;quot;&amp;quot;Yes&amp;quot; and &amp;quot;No&amp;quot; buttons. How do I close the window along with the main menu from which I press cancel from? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/I-have-a-quot-Do-you-want-to-quit-button-quot-with-quot-quot-Yes/m-p/509681#M73749</link>
    <description>&lt;P&gt;Here is a bit of JSL that seems to close all of the windows and then closes JMP.&amp;nbsp; There may be easier ways.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
cw = Current Window() &amp;lt;&amp;lt; get window title;

For( i = 99, i &amp;gt;= 1, i--,
	If( Window( i ) &amp;lt;&amp;lt; get window title != cw &amp;amp; Window( i ) &amp;lt;&amp;lt; get window title != "",
		Window( i ) &amp;lt;&amp;lt; close window
	)
);
Main Menu( "exit jmp" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 14 Jun 2022 17:54:52 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2022-06-14T17:54:52Z</dc:date>
    <item>
      <title>I have a "Do you want to quit button" with ""Yes" and "No" buttons. How do I close the window along with the main menu from which I press cancel from?</title>
      <link>https://community.jmp.com/t5/Discussions/I-have-a-quot-Do-you-want-to-quit-button-quot-with-quot-quot-Yes/m-p/509546#M73747</link>
      <description>&lt;P&gt;I was wondering how would I close all windows from pressing on the yes button, im sure its simple... im just not sure on how to write it the most efficient way.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:01:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-have-a-quot-Do-you-want-to-quit-button-quot-with-quot-quot-Yes/m-p/509546#M73747</guid>
      <dc:creator>Andyon98</dc:creator>
      <dc:date>2023-06-09T17:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: I have a "Do you want to quit button" with ""Yes" and "No" buttons. How do I close the window along with the main menu from which I press cancel from?</title>
      <link>https://community.jmp.com/t5/Discussions/I-have-a-quot-Do-you-want-to-quit-button-quot-with-quot-quot-Yes/m-p/509681#M73749</link>
      <description>&lt;P&gt;Here is a bit of JSL that seems to close all of the windows and then closes JMP.&amp;nbsp; There may be easier ways.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
cw = Current Window() &amp;lt;&amp;lt; get window title;

For( i = 99, i &amp;gt;= 1, i--,
	If( Window( i ) &amp;lt;&amp;lt; get window title != cw &amp;amp; Window( i ) &amp;lt;&amp;lt; get window title != "",
		Window( i ) &amp;lt;&amp;lt; close window
	)
);
Main Menu( "exit jmp" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Jun 2022 17:54:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-have-a-quot-Do-you-want-to-quit-button-quot-with-quot-quot-Yes/m-p/509681#M73749</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-06-14T17:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: I have a "Do you want to quit button" with ""Yes" and "No" buttons. How do I close the window along with the main menu from which I press cancel from?</title>
      <link>https://community.jmp.com/t5/Discussions/I-have-a-quot-Do-you-want-to-quit-button-quot-with-quot-quot-Yes/m-p/510750#M73878</link>
      <description>Say I don’t want to close jmp and I only want to close one window at a time; e.g.&lt;BR /&gt;&lt;BR /&gt;You press cancel on the first window and another window pops up, at this point you want the first window to close as the second window has opened.&lt;BR /&gt;&lt;BR /&gt;Then if you press on the “No” button box of the second menu, the second menu should close and the first menu should open again or you should be presented with the first menu again.&lt;BR /&gt;</description>
      <pubDate>Sat, 18 Jun 2022 14:55:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-have-a-quot-Do-you-want-to-quit-button-quot-with-quot-quot-Yes/m-p/510750#M73878</guid>
      <dc:creator>Andyon98</dc:creator>
      <dc:date>2022-06-18T14:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: I have a "Do you want to quit button" with ""Yes" and "No" buttons. How do I close the window along with the main menu from which I press cancel from?</title>
      <link>https://community.jmp.com/t5/Discussions/I-have-a-quot-Do-you-want-to-quit-button-quot-with-quot-quot-Yes/m-p/510752#M73880</link>
      <description>&lt;P&gt;Not exactly sure what you are after, but maybe something like this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

nw1_expr = Expr(
	New Window("1",
		Text Box("Window1"),
		H List Box(
			Button Box("OK"),
			Button Box("Cancel", &amp;lt;&amp;lt; Set Function(function({this},
				(this &amp;lt;&amp;lt; top parent) &amp;lt;&amp;lt; Close Window;
				nw2_expr;
			)))
		)
	);
);

nw2_expr = Expr(
	New Window("2",
		Text Box("Window2"),
		H List Box(
			Button Box("OK"),
			Button Box("No", &amp;lt;&amp;lt; Set Function(function({this},
				(this &amp;lt;&amp;lt; top parent) &amp;lt;&amp;lt; Close Window;
				nw1_expr;
			)))
		)
	);
);

nw1_expr;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 18 Jun 2022 15:11:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-have-a-quot-Do-you-want-to-quit-button-quot-with-quot-quot-Yes/m-p/510752#M73880</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-06-18T15:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: I have a "Do you want to quit button" with ""Yes" and "No" buttons. How do I close the window along with the main menu from which I press cancel from?</title>
      <link>https://community.jmp.com/t5/Discussions/I-have-a-quot-Do-you-want-to-quit-button-quot-with-quot-quot-Yes/m-p/510784#M73897</link>
      <description>&lt;P&gt;That's exactly what I was looking for, thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 08:25:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-have-a-quot-Do-you-want-to-quit-button-quot-with-quot-quot-Yes/m-p/510784#M73897</guid>
      <dc:creator>Andyon98</dc:creator>
      <dc:date>2022-06-20T08:25:16Z</dc:date>
    </item>
  </channel>
</rss>

