I changed scripts as followed :
dt = data table("Example") ;
column_names = dt << Get Column Names(numeric,String);
results = New Table("Results", visible,
New Column("Position", character),
New Column("Female", numeric),
New Column("Male", numeric),
New Column("Ratio", Formula(Female/Male)),
Add Rows(NItems(column_names))
);
for(i=1,i<=NItems(column_names),i++,
If( N Row( dt << get rows where( And( :SEX[] == "F", !Is Missing( Column( column_names )[] ) ) ) ),
colName = column_names;
cmd = Expr(
ow = dt << Distribution( Continuous Distribution( Column( cName ) ),
Where( :SEX == "F" ) );
owr = ow<<report;
allmean= owr[NumberColBox(2)];
Fmean = allmean[1];
allmean1= owr[NumberColBox(4)];
Mmean = allmean1[1];
Column(results,1) = colName;
Column(results,2) = Fmean;
Column(results,3) = Mmean;
ow << Close Window;
);
Substitute Into( cmd, Expr( cName ), colName );
Eval( cmd );
)
);
results << journal;
Now I get this message in log window
"couldn't find column{1}
in access or evaluation of 'Column' , Column( column_names )"
and it refers to this line :
":SEX[] == "F" & !Is Missing( Column/*###*/(::column_names[::i])[] )"
Thanks for advices