发布日期: 08/07/2020

Optional Scripts in New Window

One of the benefits of using New Window() is the ability to add optional scripts to display boxes. In the deprecated Dialog(), the following combo box could not include an optional script. If you wanted an action associated with any of the display box controls, you had to place a script as the control’s last argument. For example:

win = New Window( "Combo Box",
<<Modal,
<<ReturnResult,
	comboObj = Combo Box(
		{"True", "False"},
		<< Set( 1 ),
		Print( comboObj << Get )
	)
);

When the user selects a different value, the selected item number (1 or 2 in this case, because there are two items in the combo box) is printed to the log.

需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).