N Col using textbox valueHi all,
I am trying to create a user input box that will determine the N Col for my line up box. I tried this script
User_Input = New Window( "N Col", << modal(),
hlistbox(
Text Box( "Enter Column No: " ),
Col_Num_teb = Text Edit Box( "", <<SET width=""></SET>
I tried entering 4 but ends up having 2 columns. How can I correctly get the N Col for my line up box?
GraphicsOtherScriptingRe: N Col using textbox valueHi,
Unless you convert your text/string into a number, the LineUpBox call will not work. Try replacing the Text Edit Box () with a Number Edit Box
User_Input = New Window( "N Col", << modal(),
hlistbox(
Text Box( "Enter Column No: " ),
Col_Num_neb = Number Edit Box ( 1 ), // You can replace "1" by any other initial value
),
Button Box( "OK",
col_num = col_num_neb << get; // You don't need the parentheses here
),
);
lb = LineUpBox( N Col(col_num) );