该帮助的版本不再更新,请参见https://www.jmp.com/support/help/zh-cn/15.2 获取最新的版本.


Close a tab in a project by identifying the window with Get Window() and then closing it with Close Window.
project = New Project();
project << Run Script(
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Run Script( "Bivariate" );
dt << Run Script( "Distribution" );
Wait( 2 ); // for demonstration purposes
dist = Get Window( Project( project ), "Big Class - Distribution" ) ;
dist << Close Window();
To close all tabs in a project, use Get Window List << Close Window().
project = New Project();
project << Run Script(
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Run Script( "Bivariate" );
dt << Run Script( "Distribution" );
Wait( 2 ); // for demonstration purposes
Get Window List( Project( project ) ) << Close Window();