概述
此範例示範如何使用與先前列錶框中所做的使用者選擇相關的選項動態填入組合框。
指示
在 JMP® 會話中,按一下檔案選單並選擇新建 ► 腳本。複製以下腳本並將其貼上到腳本視窗中。若要執行範例腳本,請按一下「編輯」功能表並選擇「執行腳本」 。
/* Open a sample data table */
dt = Open( "$SAMPLE_DATA\Big Class.jmp", "Invisible" );
/* Extract a list of unique ages */
Summarize( a = By( :age ) );
/* Create a modal dialog */
New Window( "Example",
<<MODAL>", 1 );
cb2 << Set Items( ageNames );
)
)
)
), /* Print the selected values from the ListBox and ComboBox in the log */
Panel Box( "Select a Name:",
cb2 = Combo Box(
{"<SELECT name="">"},
<
Additional Documentation
More information about the JMP Scripting Language can be found in the JMP Scripting Guide. You can access the guide from within JMP by clicking on the Help menu and select JMP Help. From the online Table of Contents, choose Scripting Guide.
[Previously JMP Note 54614]</SELECT></MODAL>