cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
lala
Level VIII

怎样用脚本将文件中的脚本全部删除?

大家好!

怎样用脚本将文件中的脚本全部删除?或者是操作时不进行文本记录。

 

谢谢!

2022-03-07_15-14-42.png

2 ACCEPTED SOLUTIONS

Accepted Solutions
txnelson
Super User

回复: 怎样用脚本将文件中的脚本全部删除?

Here is an example of one way to delete the scripts

names default to here(1);
// Open Data Table: big class.jmp
// → Data Table( "big class" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );

dt << delete scripts(dt << Get Table Script Names);
Jim

View solution in original post

lwx228
Level VIII

回复: 怎样用脚本将文件中的脚本全部删除?

Try( dt << Delete Table Property( "Source" ) );

View solution in original post

3 REPLIES 3
lala
Level VIII

回复: 怎样用脚本将文件中的脚本全部删除?

这样的记录很浪费空间、如何设置能使进行各种操作后、保存文件时没有这样的"源"记录?

 

2022-03-07_15-21-54.png

txnelson
Super User

回复: 怎样用脚本将文件中的脚本全部删除?

Here is an example of one way to delete the scripts

names default to here(1);
// Open Data Table: big class.jmp
// → Data Table( "big class" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );

dt << delete scripts(dt << Get Table Script Names);
Jim
lwx228
Level VIII

回复: 怎样用脚本将文件中的脚本全部删除?

Try( dt << Delete Table Property( "Source" ) );