複選框不會出現在輸入提示輸入中// New dialog for script selection
scripts = {"Box Plot", "Box Plot_sublot_trend", "Box Plot_duration_trend", "Box Plot_FT1vsFT2", "Tabulation", "CDF&PDF11"};
scriptSelections = J(1, N Items(scripts), 0);
// Initialize the checkboxes array
cb = {};
nw2 = New Window("Script Selection", <<MODAL></MODAL>So I have several sub scripts for my main script to call, I wanted to create a checkbox where the user can select which sub scripts to run (from <CODE class=" language-jsl">Box Plot", "Box Plot_sublot_trend", "Box Plot_duration_trend", "Box Plot_FT1vsFT2", "Tabulation", "CDF&PDF11.) But no matter what I do I only get an empty window with the line " Select Scripts to run".
How can I solve this? Thanks!
<LINGO-LABS id="lingo-labs-774913" slang="en-US" mode="CREATE"><LINGO-LABEL>自動化和腳本編寫</LINGO-LABEL><LINGO-LABEL>資料存取</LINGO-LABEL><LINGO-LABEL>視窗</LINGO-LABEL></LINGO-LABS>回覆:輸入提示中不會顯示複選框無需使用帶有複選框的 For 循環。 顯示功能 (jmp.com)和建置新 Windows 的顯示框 (jmp.com)
這可能不完全正確,但給出瞭如何使用複選框的想法
Names Default To Here(1);
// New dialog for script selection
scripts = {"Box Plot", "Box Plot_sublot_trend", "Box Plot_duration_trend", "Box Plot_FT1vsFT2",
"Tabulation", "CDF&PDF11"};
scriptSelections = J(1, N Items(scripts), 0);
// Initialize the checkboxes array
cb = {};
nw2 = New Window("Script Selection",
<<MODAL></MODAL>
<P>也不要在模態視窗上使用 << close window ,你會遇到各種各樣的問題。</P>
<P> </P>回覆:輸入提示中不會顯示複選框感謝您的回复,我已經成功了,但是一旦我集成了“<
// New dialog for script selection
scripts = {"Box Plot", "Box Plot_sublot_trend", "Box Plot_duration_trend", "Box Plot_FT1vsFT2", "Tabulation", "CDF&PDF11"};
// Initialize the checkboxes array
cb = {};
nw2 = New Window("Script Selection",
<<MODAL></MODAL>回覆:輸入提示中不會顯示複選框當您使用 << 模態視窗時,您必須在關閉之前收集結果
nw2 = New Window("Script Selection",
<<MODAL></MODAL>
<P>and then remove <CODE class=" language-jsl">selectedScripts = cb << get selected after the modal. You should also remove all the parts where you are trying to close nw2 as it is already closed when user presses OK/Cancel.
<CODE class=" language-jsl">Names Default To Here(1);
scripts = {"Box Plot", "Box Plot_sublot_trend", "Box Plot_duration_trend", "Box Plot_FT1vsFT2",
"Tabulation", "CDF&PDF11"};
nw2 = New Window("Script Selection",
<<MODAL></MODAL>回覆:輸入提示中不會顯示複選框太感謝了!