See if this is what you want
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
cc = {"height", "weight"};
nw = New Window( "Chooser",
rb = Radio Box(
cc,
theColumn = rb << get;
Try( dis << delete );
vlb << append( dis = Distribution( Continuous Distribution( Column( cc[theColumn] ) ) ) );
),
vlb = V List Box(
dis = Distribution( Continuous Distribution( Column( cc[1] ) ) )
)
);
But what I really think you should use, is the builtin Column Switcher
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Distribution(
Continuous Distribution( Column( :height ), Always use column properties( 1 ) ),
Column Switcher( :height, {:height, :weight} )
);
Jim