N Col 使用文本框值大家好,
我正在尝试创建一个用户输入框,它将确定我的排队框的 N Col。 我试过这个脚本
User_Input = New Window( "N Col", << modal(),
hlistbox(
Text Box( "Enter Column No: " ),
Col_Num_teb = Text Edit Box( "", <<SET width=""></SET>
我尝试输入 4 但最终有 2 列。 如何正确获取我的排队框的 N Col?
图形其他脚本回复:N Col 使用文本框值您可以使用数字编辑框然后 << 获取或使用文本编辑框使用 << 获取文本,然后使用 Num() 将其转换为数字
Names Default To Here(1);
//Text Edit Box
User_Input = New Window("N Col",
<<MODAL></MODAL>回复:N Col 使用文本框值你好,
除非您将文本/字符串转换为数字,否则 LineUpBox 调用将不起作用。 尝试用数字编辑框替换文本编辑框 ()
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) );