Hi JMPers,
Some problems about the return values of number edit box.
I have referred to other posts(combining number box , collect all data in new window), and try to create my code.
Since I have many items to be given value, typing number into every item is not practical for me.
So the "New Window" and "Append" are used to dispose the return value for many items.
Eventually the code just return the default value(1) rather than the number I key in.
Can you help to check which steps are wrong in my code?
Thank you for great help in advanced.
list = {"A", "B", "C","D","E","F","G"};
val={};
nw = New Window( "example",
v = V List Box(),
Button Box( "OK", Set Script( nw<<close window) )
);
For( i = 1, i <= n items(list), i++,
(v << append(
Outline Box( "",
H List Box(
Text Box( list[i] ),
exq =number Edit Box( 1 ),
)
)
) ;
Insert Into( val, exq<<get);
)
);
show(val);