Hi,
could you please help me with scripting. I would like to create new columns automatically. The part below "//Pad(+N_Pad) - column (start) ..." works, when the list_XRF={"DW", ..} was defined within the script and used.
But, how to create a "dialog window", that enables to enter a list with (if possible variable) items, that will be used for the following script "//Pad(+N_Pad) - column (start) ..."
Names Default To Here( 1 );
dt = Current Data Table();
list_XRF = "";
//a=b=c=d=e=f=g=h=i=j=k=l=
//a,b,c,d,e,f,g,h,i,j,k,l,
m = n = o = p = "";
New Window( "Define Pad types",
Modal,
<<RETURN result=""></RETURN>
You're almost there. list_xrf refers to a display object and is not a list. You have to get the list when the OK button is pushed.
m = n = o = p = "";
New Window( "Define Pad types",
<< Modal,
<< Return Result,
Outline Box( "Please define", Table Box(pad_sceb = String Col Edit Box( "Pad types", {m, n, o, p} ) ) ),
button box("OK",
list_XRF = pad_sceb << get;
)
);