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


Send the Set Selected message to select a column.
dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );
colList = dt << Get Column Names( String );
For( i = 1, i <= N Cols( dt ), i++,
If( Contains( colList[i], "NPN" ), // select only columns with NPN
Column( colList[i] ) << Set Selected( 1 )
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
:age << Set Selected( 1 );
:sex << Set Selected( 1 );
dt << Get Selected Columns();
dt << Get Selected Columns( "string" );
To actually select the columns before getting the columns, send the Set Selected message to a column. For more information, see Column Attributes.
dt << Go To( column name | column number );
dt = Open( "$SAMPLE_DATA/Tiretread.jmp" );
dt << Go To( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt:age << Set Selected( 1 );
dt:height << Set Selected( 1 );
Wait( 1 );
b = dt << Invert Column Selection;
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
b = dt << Invert Column Selection( a );