I use the following code to select in the Col List Box, all of the columns that are currently selected in the data table. It might prove useful
colListData = Col List Box( nLines( 15 ) ),
colListData << append( dt << get column names ),
// At startup, sselect the columns in the selection box for
// the columns that are selected in the data table
For( II = 1, II <= N Items( All Columns list ), II++,
If( Column( ii ) << get selected == 1,
colListData << set selected( II ));
);
Jim