该帮助的版本不再更新,请参见https://www.jmp.com/support/help/zh-cn/15.2 获取最新的版本.


Constructors such as Edit Number() and Check Box() can be used in column dialogs, which construct launch windows with a column selector. The following example shows a typical column dialog with an Edit Number() box:
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
ex x = ColList( "X", Max Col( 1 ) ),
HList( "Alpha",
Column Dialog Constructors describes the column dialog constructors.
注意: 
Draws an OK or a Cancel button. If OK is clicked, Button(1) is returned. If Cancel is clicked, Button(–1) is returned.
var( CheckBox( "Text after box", <1|0> ) )
var=Col List( "role", <MaxCol( n )>, <Datatype( type )> )
Creates a selection destination with a role button; the user’s choices are returned in a list item of the form var={choice 1, choice 2, …, choice n}.
You can specify the required data type of the column using Datatype(type). The choices for type are Numeric, Character, or Rowstate.
var( ComboBox( "choice1", "choice2", ...) )
var( Edit Number( number ) )
Produces an edit field for a number with number as the default value. When OK is clicked, the number entered in the field is assigned to the variable.
var( Edit Text( "string", <width(x)> ) )
Produces an edit field for a string with string as the default value. You can also specify the minimum width of the box in pixels. The default width is 72 pixels. When OK is clicked, the text entered in the field is assigned to the variable.
HList( item, item, ... )
Top aligns and spaces the items in a horizontal row. Placing a pair of VLists within an HList produces a top aligned, spaced pair of columns.
Line Up Box( n, item_11, item_12, ..., item_1n, ..., item_nn )
Lines up the items listed in n columns, where item_ij is the jth item of the ith row.
var( RadioButtons( "choice1", "choice2", ... ) )
"string"
VList( item, item, ... )
Left aligns and spaces the items in a vertical column. Placing a pair of HLists within a VList produces a left-aligned, spaced pair of rows.