cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

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

Error "send expects scriptable object..."

HI Everyone, I'm trying a very simple script that is meant to function within a data table, in other words, I have the data table allready and have created a script within it (not sure is that's relevant but thought I'd specify...). 
I'm trying to retrieve the spec limits from column7 below and getting this error everytime:

"Send expects scriptable object in access or evaluation of 'Send', Eval Exp(":" || cols[7]) << /*###*/ Get Property ("Spec Limits") /*###*/"

The code I'm using is here:

Names Default to Here(1); //This enables any variables to remain local to the script and not interact with any
                                          //pre-defined jmp environment variables.
Delete Symbols();             //Removes the values of any global variables already defined in the jmp enviroment so that
                                         //they don't override any local variable you may define in your script.
clear log ();
cols = Data Table(1) << Get Column Names( numeric, continuous );
Q = Eval Expr(":" || cols[7]) << Get Property( "Spec limits" );
1 REPLY 1
txnelson
Super User

Re: Error "send expects scriptable object..."

Here is one way of doing what you want using the Column() function.

Names Default To Here( 1 ); //This enables any variables to remain local to the script and not interact with any
//pre-defined jmp environment variables.
Delete Symbols();             //Removes the values of any global variables already defined in the jmp enviroment so that
//they don't override any local variable you may define in your script.
Clear Log();
cols = Data Table( 1 ) << Get Column Names( numeric, continuous );
Q = column( char(cols[7])) << Get Property( "Spec limits" );
Jim

Recommended Articles