New Table
New Table using Select Properties
Summary: Runs the selection and addition of properties to a new table, including creating table variables and clearing property selection.
Code:
dt = Open("data_table.jmp");
dt << Select Properties( {2, 4} );
proplist = dt << Get Selected Properties();
dt2 = New Table( "Little Class" );
dt2 << Add scripts to table( proplist );
dt << New Table Variable( "abc", "abc" );
dt << New Table Variable( "def", 42 );
dt << Clear Properties Selection;
dt << Select Properties( {"Contingency", "abc", "def"} );
proplist2 = dt << Get Selected Properties();
dt2 << Add scripts to table( proplist2 );
Code Explanation:
- Open data table;
- Select properties 2 and 4.
- Get selected properties.
- Create new table "Little Class".
- Add scripts to "Little Class".
- Create table variable "abc" with value "abc".
- Create table variable "def" with value 42.
- Clear property selection.
- Select properties "Contingency", "abc", "def".
- Get selected properties and add to "Little Class".