需要幫助來引用 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>