cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. ET on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

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

Need help with random errors on script start AFTER the previous run finished

Never mind, I figured it out - one of the functions had Eval() which was evaluating right when script starts.

 

I am writing a simple GUI prototype:

List of tables in a combo box, button to add\open table and Filter Col Box with column names of the currently selected table.

Everything works on the first run - tables are switched, columns are displayed, combobox reacts to tables being added, closed or renamed.

I'm using subscription to tables for that.

After I close GUI window and start the script AGAIN, I'm getting random errors connected to symbols not being defined (it's a new instance running). As if on start it keeps running pieces of code in random places from previous instance and not finding variables defined in those pieces.

 

I click OK on error pop-up and run again - script working normally

Here's my window onClose function:

onWindowCloseExpr = Expr(
	Write("\!nRunning on window close expression");
	For Each({_dt, _index}, (data:tablesListAA << Get Values),
		Close(_dt, NoSave);
	);
	Unsubscribe to Data Table List( aSub );
	Clear Symbols();
	Stop();
);

I added Clear Symbols() and Stop() while trying to troubleshoot the issue, to make sure script stops and everything cleared.

Any idea what's happening and how to fix?

 

0 REPLIES 0

Recommended Articles