cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
Choose Language Hide Translation Bar
lala
Level VIII

Are there any other ways to create a new script in the JMP table?

I think it will have /*...*/ The content of cannot be written
For example, the script is like this

Include("C:\gr.jsl");
/*
dz=Open("C:\gr.jsl",Charset("gb2312"),Add to Recent Files(0));
*/

I use

dt=Open("$SAMPLE_DATA/Big Class.jmp");
Eval(Parse("dt<<new script(\!"test\!", Include(\!"C:\gr.jsl\!");   );"))Thanks Experts!
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Are there any other ways to create a new script in the JMP table?

Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

dt << New Script("A",
JSL Quote(Include("C:\gr.jsl");
/*
dz=Open("C:\gr.jsl",Charset("gb2312"),Add to Recent Files(0));
*/),
As String(1)
);

jthi_0-1750070036053.png

 

-Jarmo

View solution in original post

5 REPLIES 5
jthi
Super User

Re: Are there any other ways to create a new script in the JMP table?

Which script are you trying to create? Do you wish to keep the comments? How to automatically write code containing /**/ to JSL? ?

-Jarmo
lala
Level VIII

Re: Are there any other ways to create a new script in the JMP table?

no word
2025-06-16_13-15-20.png

jthi
Super User

Re: Are there any other ways to create a new script in the JMP table?

I'm still not sure what you are trying to achieve here

-Jarmo
lala
Level VIII

Re: Are there any other ways to create a new script in the JMP table?

I need to directly generate the content of such a script in the table using a script.

Thanks Experts!

2025-06-16_13-30-37.png

jthi
Super User

Re: Are there any other ways to create a new script in the JMP table?

Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

dt << New Script("A",
JSL Quote(Include("C:\gr.jsl");
/*
dz=Open("C:\gr.jsl",Charset("gb2312"),Add to Recent Files(0));
*/),
As String(1)
);

jthi_0-1750070036053.png

 

-Jarmo

Recommended Articles