Use the
<< Move Selected Columns()
message to move the new column to where you want it
Names Default To Here( 1 );
// Open Data Table: big class.jmp
// → Data Table( "big class" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );
// New column: Column 6
dt << New Column( "Column 6",
Numeric,
"Continuous",
Format( "Best", 12 )
) << Move Selected Columns( {:Column 6}, after( :sex ) );
or
Names Default To Here( 1 );
// Open Data Table: big class.jmp
// → Data Table( "big class" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );
// New column: Column 6
dt << New Column( "Column 6",
Numeric,
"Continuous",
Format( "Best", 12 )
);
dt << Move Selected Columns( {:Column 6}, after( :sex ) );
Jim