需要帮助来引用 jsl 的用户输入条目嗨,我试图在我的脚本中引用用户输入作为 MFI 的名称过滤器,但是当我运行脚本时,它似乎在打开用户输入窗口之前先运行 MFI 部分。 有人可以帮助建议出了什么问题吗?欣赏!
Names Default To Here(1);
win = New Window( "Set the Value",
H List Box( Text Box( "Set this value" ), num_edit_box1 = Text Edit Box( "lot" ) ),
H List Box(
Button Box( "OK",
//store results in jsl variables
num_input = num_edit_box1 << get text();
//close the window
//wait until you've unloaded the input boxes before you closing
//or else they'll be gone
win << close window;
//now do whatever work you want with the inputs
Show( num_input );
Print( num_input );
),
//a cancel button that closes the window and doesn't store store the results
Button Box( "Cancel", win << close window )
)
);
Multiple File Import(
<<SET folder=""></SET>
脚本编写回复:需要帮助来引用 jsl 的用户输入条目指定 New Window() 时 JMP 不会停止处理,除非它是模态窗口,或者新窗口是脚本中的最后一个代码。
因此,您有几个选项可以更正您的代码。
添加 <将 MFI 代码移动到 OK 按钮执行中回复:需要帮助来引用 jsl 的用户输入条目你好@txnelson ,非常感谢您的输入! 添加 <
但是,我现在在将“num_input”的用户输入变量引用为 MFI 的名称过滤器时遇到问题,尝试了几种方法来做到这一点,但不起作用。 我对jsl很陌生,希望得到一些建议。
Multiple File Import(
<<SET folder=""></SET>