Hi again @dg1,
Just to follow up, I looked a little more closely at your code and there were a few places where I think you'll hit a snag. The biggest is unloading the results. Each of your RadioBox() objects should have a handle so you can reference them later to grab the data. Below is one way to do that, that assigns the reference to a list, and then later steps through that list of references, sends the message to get the selected item, and stores the result to another list. This all happens when the OK button is clicked.
Names Default To Here( 1 );
dt = Current Data Table();
number = N Cols( dt );
rbList = {};
rbResult = {};
FactorType = {"Continuous", "Categorical"};
win = New Window( "Data Entry",
<<Modal,
type = V List Box(),
Button Box( "OK",
For( i = 1, i <= number, i++,
rbResult[i] = rbList[i] << Get Selected
);
win << close window;
),
For( i = 1, i <= number, i++,
type << Append( Text Box( "Type of Factor" ) );
type << Append( rbList[i] = Radio Box( FactorType ) );
);
);
Print( rbResult );
If you haven't yet, I highly suggest you read the JMP Scripting Guide, Help > Books > Scripting Guide. It will be invaluable as you learn the language and the operations necessary to have a script work as you want. Also, I really enjoyed the book JSL Companion: Applications of the JMP Scripting Language. I would start with the Scripting Guide because it is included free in JMP, but the JSL Companion does provide a structured introduction to using JSL through a series of practical applications (and all the code is included).
Hope this helps you along your way! Enjoy!
@julian