Here is an example, taking the script example from the Scripting Index for New Window. For the most part, it was just replicated 3 times with your specification changed for each entry
names default to here(1);
dt=current data table();
ex = New Window( "Process",
<<Type( "Modal Dialog" ),
<<Return Result,
V List Box(
Text Box( "Enter the constant for the Process column" ),
H List Box( myEditBox = Number Edit Box( ) ),
H List Box( Button Box( "OK" ), Button Box( "Cancel" ) )
)
);
// the Modal window must be closed before the following code runs
If(
ex["button"] == 1 // not canceled
, dt << New Column("Process", set each value(ex["myEditBox"])),
Write( "CANCEL" ); // cancel button or red X was pressed
);
ex = New Window( "LotSlot",
<<Type( "Modal Dialog" ),
<<Return Result,
V List Box(
Text Box( "Enter the constant for the Lotslot column" ),
H List Box( myEditBox = Number Edit Box( ) ),
H List Box( Button Box( "OK" ), Button Box( "Cancel" ) )
)
);
// the Modal window must be closed before the following code runs
If(
ex["button"] == 1 // not canceled
, dt << New Column("LotSlot", set each value(ex["myEditBox"])),
Write( "CANCEL" ); // cancel button or red X was pressed
);
ex = New Window( "Dose",
<<Type( "Modal Dialog" ),
<<Return Result,
V List Box(
Text Box( "Enter the starting number for the Dose column" ),
H List Box( myEditBox = Number Edit Box( ) ),
H List Box( Button Box( "OK" ), Button Box( "Cancel" ) )
)
);
// the Modal window must be closed before the following code runs
If(
ex["button"] == 1 // not canceled
, dt << New Column("Dose", set each value(ex["myEditBox"]-(Row()-1)*2)),
Write( "CANCEL" ); // cancel button or red X was pressed
);
Jim