Welcome to the Community.
Here is the example of inverting the column selection from the Scripting Index
![txnelson_0-1724372475459.png txnelson_0-1724372475459.png](/t5/image/serverpage/image-id/67438i6D7BC5B80B1B3C08/image-dimensions/796x557?v=v2)
Names Default To Here( 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;
And here is the example of how to delete selected columns from the Scripting Index
![txnelson_1-1724372583190.png txnelson_1-1724372583190.png](/t5/image/serverpage/image-id/67439iAC2C644469A90D37/image-dimensions/827x581?v=v2)
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt:height << Set Selected;
Wait( 2 );
dt << Delete Columns();
As you can see, the Scripting Index is really a powerful learning tool and syntax reference.
Jim