<?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: Errors Using the Close Function in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Errors-Using-the-Close-Function/m-p/33663#M19968</link>
    <description>No worries, happens to me all the time.</description>
    <pubDate>Wed, 14 Dec 2016 17:56:39 GMT</pubDate>
    <dc:creator>vince_faller</dc:creator>
    <dc:date>2016-12-14T17:56:39Z</dc:date>
    <item>
      <title>Errors Using the Close Function</title>
      <link>https://community.jmp.com/t5/Discussions/Errors-Using-the-Close-Function/m-p/33644#M19951</link>
      <description>&lt;P&gt;I get this error in the log when I try to close and save the data table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;invalid argument in access or evaluation of 'Close' , Close/*###*/(dt, filePath || waferId || " Multivariate Correlations.txt")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code works fine up until the last line (close function). &amp;nbsp;It is outputting the data from the matrix box into a data table, so I don't understand why this function isn't working. &amp;nbsp;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;filePath = Pick Directory( "Where do you want to save?" );
nw = New Window( "",
	&amp;lt;&amp;lt;modal,
	V List Box(
		Text Box( "Enter Wafer ID:" ),
		Spacer Box( Size( 25, 25 ) ),
		wafername = Text Edit Box( "&amp;lt;Wafer ID&amp;gt;", &amp;lt;&amp;lt;Justify Text( Center ) ), 	
		
	), 	
	
	Spacer Box( Size( 25, 25 ) ),
	H List Box( Button Box( "OK", waferid = wafername &amp;lt;&amp;lt; Get Text) )
);

table1 = Current Report();
tableName = table &amp;lt;&amp;lt; Get Window Title;
If( tableName == "CP1 and CP2 Data - Multivariate", 
	
	datamatrix = table1["Correlations"][Matrix Box( 1 )];
	dt = datamatrix &amp;lt;&amp;lt; make into data table;
	dt &amp;lt;&amp;lt; Set Name( waferId || " Multivariate Correlations" );
	
	Close( dt, filePath || waferId || " Multivariate Correlations.csv" );
);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 22:01:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Errors-Using-the-Close-Function/m-p/33644#M19951</guid>
      <dc:creator>natalie_</dc:creator>
      <dc:date>2016-12-13T22:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Errors Using the Close Function</title>
      <link>https://community.jmp.com/t5/Discussions/Errors-Using-the-Close-Function/m-p/33645#M19952</link>
      <description>&lt;P&gt;put save() around your filepath.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 00:56:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Errors-Using-the-Close-Function/m-p/33645#M19952</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2016-12-14T00:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Errors Using the Close Function</title>
      <link>https://community.jmp.com/t5/Discussions/Errors-Using-the-Close-Function/m-p/33656#M19963</link>
      <description>&lt;P&gt;Thank you so much! &amp;nbsp;Sorry to bother you with such a simple typo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 15:02:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Errors-Using-the-Close-Function/m-p/33656#M19963</guid>
      <dc:creator>natalie_</dc:creator>
      <dc:date>2016-12-14T15:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Errors Using the Close Function</title>
      <link>https://community.jmp.com/t5/Discussions/Errors-Using-the-Close-Function/m-p/33663#M19968</link>
      <description>No worries, happens to me all the time.</description>
      <pubDate>Wed, 14 Dec 2016 17:56:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Errors-Using-the-Close-Function/m-p/33663#M19968</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2016-12-14T17:56:39Z</dc:date>
    </item>
  </channel>
</rss>

