cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
Using a JMP® script to delete a non-existent table property now returns error: cannot find table property

Attempting to delete a table property that does not exist in a data table returns the error "cannot find table property." Because this is an error condition, the JSL script stops executing.  Prior versions of JMP® ignored the condition and proceeded with the next JSL statement.

As a workaround, the Try() function can be used to escape the error condition and optionally execute a catch expression (optional second argument).  Using the Try() would be harmless to earlier versions of JMP because no error is generated, and it would allow the existing scripts to run in JMP 14.  Here is a simple example that includes the optional second argument:

dt = Open( "$SAMPLE_DATA\Big Class.jmp" );

Try( dt << Delete Property( "Fred" ), Print( "Table Property Fred does not exist" ) );

Print( "Continue to next JSL statement" );

 

 

[Previously JMP Note 62153]

Details
Operating System
macOS Windows
Reported Version
14.0
Fixed Version
14.1
Products JMP JMP Pro