cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
New to using JMP? Hit the ground running with the Early User Edition of Discovery Summit. Register now, free of charge.
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
Choose Language Hide Translation Bar
mtowle419
Level I

Is there a function that returns a list of messages an object responds to?

Ex.:

 

nt = new table();

nt << messages;

=> { get column names, etc }
2 ACCEPTED SOLUTIONS

Accepted Solutions
txnelson
Super User

Re: Is there a function that returns a list of messages an object responds to?

The Scripting Index can show you all of the messages that can be sent to an object, such as a Data Table

txnelson_0-1723859619508.png

 

Jim

View solution in original post

MathStatChem
Level VI

Re: Is there a function that returns a list of messages an object responds to?

You can also use

nt=new table();
show properties(nt);

This will show (most?) of the messages the object will accept, but doesn't show the full syntax required for each message.  

View solution in original post

4 REPLIES 4
txnelson
Super User

Re: Is there a function that returns a list of messages an object responds to?

The Scripting Index can show you all of the messages that can be sent to an object, such as a Data Table

txnelson_0-1723859619508.png

 

Jim
mtowle419
Level I

Re: Is there a function that returns a list of messages an object responds to?

The thing with the Scripting Index is, I feel like I’ve noticed missing messages as well as deprecated ones.

Other languages do implement this, btw. Ruby has it.

Thanks for your reply; I’ll accept it as a solution.
txnelson
Super User

Re: Is there a function that returns a list of messages an object responds to?

You should add your idea to the JMP Wish List

Jim
MathStatChem
Level VI

Re: Is there a function that returns a list of messages an object responds to?

You can also use

nt=new table();
show properties(nt);

This will show (most?) of the messages the object will accept, but doesn't show the full syntax required for each message.