<?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 Problem with On Close() statement in New Window in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Problem-with-On-Close-statement-in-New-Window/m-p/485836#M72968</link>
    <description>&lt;P&gt;I have a script that takes in a table, produces two summary tables dtMean and dtStdDev, and then draws some tabulates and opens then in a new window like so:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;vlb = V List Box(
dtMean &amp;lt;&amp;lt; Tabulate(
...),
dtStdDev &amp;lt;&amp;lt; Tabulate (
...)
);
closeTables = Expr(
	Close( dtMean, NoSave );
	Close( dtStdDev, NoSave );
	
);

nw = New Window( "Tool to tool matching",
	Show Menu( 0 ),
	Show Toolbars( 0 ),  On Close(closeTables), vlb
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;this On Close statement causes error:&lt;/P&gt;&lt;P&gt;Name Unresolved: On Close in access or evaluation of 'On Close' , On Close( closeTables ) /*###*/&lt;/P&gt;&lt;P&gt;[OK]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I run closeTable separately - tables close.&lt;/P&gt;&lt;P&gt;Why and how to fix?&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 16:58:52 GMT</pubDate>
    <dc:creator>miguello</dc:creator>
    <dc:date>2023-06-09T16:58:52Z</dc:date>
    <item>
      <title>Problem with On Close() statement in New Window</title>
      <link>https://community.jmp.com/t5/Discussions/Problem-with-On-Close-statement-in-New-Window/m-p/485836#M72968</link>
      <description>&lt;P&gt;I have a script that takes in a table, produces two summary tables dtMean and dtStdDev, and then draws some tabulates and opens then in a new window like so:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;vlb = V List Box(
dtMean &amp;lt;&amp;lt; Tabulate(
...),
dtStdDev &amp;lt;&amp;lt; Tabulate (
...)
);
closeTables = Expr(
	Close( dtMean, NoSave );
	Close( dtStdDev, NoSave );
	
);

nw = New Window( "Tool to tool matching",
	Show Menu( 0 ),
	Show Toolbars( 0 ),  On Close(closeTables), vlb
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;this On Close statement causes error:&lt;/P&gt;&lt;P&gt;Name Unresolved: On Close in access or evaluation of 'On Close' , On Close( closeTables ) /*###*/&lt;/P&gt;&lt;P&gt;[OK]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I run closeTable separately - tables close.&lt;/P&gt;&lt;P&gt;Why and how to fix?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:58:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Problem-with-On-Close-statement-in-New-Window/m-p/485836#M72968</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2023-06-09T16:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with On Close() statement in New Window</title>
      <link>https://community.jmp.com/t5/Discussions/Problem-with-On-Close-statement-in-New-Window/m-p/485855#M72969</link>
      <description>&lt;P&gt;Nevermind, it needs to be&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&amp;lt;&amp;lt; On Close()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;not&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;On Close()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 19:01:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Problem-with-On-Close-statement-in-New-Window/m-p/485855#M72969</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2022-05-10T19:01:01Z</dc:date>
    </item>
  </channel>
</rss>

