I am working on scripting a repetitive analysis process. Part of this process will require the user to input a series of weights for different samples. To do this I want to use a dialog window since the weights change every time we run the process.
For example lets say I have the following data set (Image on the right). I need to the standardize my Y measurements to the sample weights that the user inputs. So I wrote the following script to get the weights from the user and unload the values from the dialog box. Now I want to create a new column where the value in Y is divided by the appropriate sample weight. So I want the first six columns (Sample A1) to all be divided by the weight A1 from the dialog window but I am stuck trying to figure out how to script this. I'm fairly new to scripting so suggestions would be really helpful.

dlg = Dialog(
"Enter Sample Weights",
Lineup( 1,
"A1",
a1 = edit number( 12 ),
"A2",
a2 = edit number( 12 ),
"B1",
b1 = edit number( 12 ),
"B2",
b2 = edit number( 12 ),
"C1",
c1 = edit number( 12 ),
"C2",
c2 = edit number( 12 ),
Button( "OK" ),
Button( "Cancel" )
;
a1 = dlg["a1"];
a2 = dlg["a2"];
b1 = dlg["b1"];
b2 = dlg["b2"];
c1 = dlg["c1"];
c2 = dlg["c2"];