cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
natalie_
Level V

Errors Using the Close Function

I get this error in the log when I try to close and save the data table:

 

 invalid argument in access or evaluation of 'Close' , Close/*###*/(dt, filePath || waferId || " Multivariate Correlations.txt")

 

My code works fine up until the last line (close function).  It is outputting the data from the matrix box into a data table, so I don't understand why this function isn't working.  Any ideas?

 

Thanks!

 

filePath = Pick Directory( "Where do you want to save?" );
nw = New Window( "",
	<<modal,
	V List Box(
		Text Box( "Enter Wafer ID:" ),
		Spacer Box( Size( 25, 25 ) ),
		wafername = Text Edit Box( "<Wafer ID>", <<Justify Text( Center ) ), 	
		
	), 	
	
	Spacer Box( Size( 25, 25 ) ),
	H List Box( Button Box( "OK", waferid = wafername << Get Text) )
);

table1 = Current Report();
tableName = table << Get Window Title;
If( tableName == "CP1 and CP2 Data - Multivariate", 
	
	datamatrix = table1["Correlations"][Matrix Box( 1 )];
	dt = datamatrix << make into data table;
	dt << Set Name( waferId || " Multivariate Correlations" );
	
	Close( dt, filePath || waferId || " Multivariate Correlations.csv" );
);

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
vince_faller
Super User (Alumni)

Re: Errors Using the Close Function

put save() around your filepath. 

Vince Faller - Predictum

View solution in original post

3 REPLIES 3
vince_faller
Super User (Alumni)

Re: Errors Using the Close Function

put save() around your filepath. 

Vince Faller - Predictum
natalie_
Level V

Re: Errors Using the Close Function

Thank you so much!  Sorry to bother you with such a simple typo 

vince_faller
Super User (Alumni)

Re: Errors Using the Close Function

No worries, happens to me all the time.
Vince Faller - Predictum

Recommended Articles