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.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

Discussions

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

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

大家好!

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

 

谢谢!

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 IX

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

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

 

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" ) );

Recommended Articles