In the following script I have a list of 3 elements and I am trying to create a new window where the user can enter some values for each of the elements:
myList = {"apple", "banana", "orange"};
nw = New Window( "Enter Numbers",
<<Modal,
<<Return Result,
V List Box(
Text Box("Enter the values"),
For( i = 1, i <= N Items( myList ), i++,
Lineup Box( Text Box( Eval(myList[i])),
Number Edit Box( 42 )
)
),
H List Box(
Button Box( "OK" ),
Button Box( "Cancel" )
)
)
);I use the for loop because the number of the items in the list "myList" changes. So that I would like to happen also for the Number Edit Boxes. However, I get back the following:

Ideally I would like the values that the end user enters to be saved in a list.