Hi All,
I have a script that opens and closes a few tables. I was wondering whether there is a way of changing the order of the open tables? Once I close a table the active table becomes the last in the list of open tables and not the previous active one.
For example:
dt1 = Open( "$SAMPLE_DATA/Cities.jmp" );
dt2 = Open( "$SAMPLE_DATA/Big Class.jmp" );
// set the first active table to be current
Current data table (dt1);
// open and close another table
dt3 = Open( "$SAMPLE_DATA/Cars.jmp" );
Wait (2);
Close (dt3, no save);
// check which table is currently active?
Current data table ();
At this point dt2 is active while I would like dt1 to be active since it was the last active one before opening and closing dt3. For that I need to do this again:
Current data table (dt1);