cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
lala
Level VIII

How to copy the script of one table to another table using JSL?

dt=Open("$SAMPLE_DATA/Big Class.jmp");
scriptContent = dt << Get Script("Oneway");
d9 = New Table("A");
d9 << New Script("Oneway", scriptContent);

Thanks Experts!

2025-06-04_21-34-20.png

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How to copy the script of one table to another table using JSL?

There are plenty of demonstrations of saving expressions to table script so here is a repeat

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
ow_script = dt << Get Script("Oneway");
dt2 = Open("$SAMPLE_DATA/Big Class Families.jmp");
Eval(EvalExpr(
	dt2 << New Script("Oneway", Expr(NameExpr(ow_script)));
));
-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: How to copy the script of one table to another table using JSL?

There are plenty of demonstrations of saving expressions to table script so here is a repeat

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
ow_script = dt << Get Script("Oneway");
dt2 = Open("$SAMPLE_DATA/Big Class Families.jmp");
Eval(EvalExpr(
	dt2 << New Script("Oneway", Expr(NameExpr(ow_script)));
));
-Jarmo

Recommended Articles