需要協助來引用 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>
<BR /><LINGO-LABS id="lingo-labs-396303" slang="en-US" mode="UPDATE"><LINGO-LABEL>品質和工藝工程</LINGO-LABEL></LINGO-LABS>回复:需要幫助來引用 jsl 的用戶輸入條目我假設沒有像“num_input.csv”這樣的文件。我相信你想要的是
<< Set Name Filter( num_input || ".csv" ),
您需要花時間閱讀腳本指南。它將為您提供 JSL 結構的背景知識。它位於“幫助”下拉菜單下的 JMP 文檔庫中
回复:需要幫助來引用 jsl 的用戶輸入條目你好@txnelson ,非常感謝您的輸入! 添加 <
但是,我現在在引用“num_input”的用戶輸入變量作為 MFI 的名稱過濾器時遇到問題,嘗試了幾種方法但不起作用。 我對jsl很陌生,希望得到一些建議。
Multiple File Import(
<<SET folder=""></SET>
回复:需要幫助來引用 jsl 的用戶輸入條目指定 New Window() 時,JMP 不會停止處理,除非它是模態窗口,或者新窗口是腳本中的最後一個代碼。
因此,您有幾個選項來更正您的代碼。
添加 <將 MFI 代碼移動到 OK 按鈕執行中