I changed your code to set the "List" variable inside of the Modal box. I also changed the code to clean up itself by deleting the individual output.
Names Default To Here( 1 );
dt = Current Data Table();
list = dt << get column names( character );
New Window( "column selector",
<<modal,
Border Box( Left( 3 ), top( 2 ),
V List Box(
Text Box( "Group By" ),
H List Box(
H List Box(
Panel Box( "Select Columns",
lb = List Box( list ),
Check Box( "merge" )
),
Panel Box( "selected group",
Button Box( "select",
<<set function(
Function( {self},
lb_selected << append( lb << get selected );
list = lb_selected << get items;
)
)
),
lb_selected = List Box( {} )
),
)
)
)
)
);
para_list = dt << get column names( "continuous" );
nw = New Window( "graphs", myVLB = V List Box() );
For( i = 1, i <= N Items( list ), i++,
For( j = 1, j <= N Items( para_list ), j++,
cp = oneway(invisible,
Y( para_list[j] ),
X( list[i] ),
Automatic Recalc( 1 ),
Means and Std Dev( 1 ),
CDF Plot( 1 ),
Box Plots( 1 ),
Mean Diamonds( 1 ),
Mean Error Bars( 1 ),
Std Dev Lines( 1 ),
Connect Means( 1 ),
X Axis Proportional( 0 ),
Points Jittered( 1 ),
);
myVLB << append( Report( cp ) );
cp << delete;
);
);
Jim