Subscribe Bookmark RSS Feed

Errors Using the Close Function

natalie_

Community Trekker

Joined:

Jan 6, 2016

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

Joined:

Mar 17, 2015

Solution

put save() around your filepath. 

3 REPLIES
vince_faller

Super User

Joined:

Mar 17, 2015

Solution

put save() around your filepath. 

natalie_

Community Trekker

Joined:

Jan 6, 2016

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

vince_faller

Super User

Joined:

Mar 17, 2015

No worries, happens to me all the time.