Not sure I entirely understand what you are trying to do.
A couple of questions:
1. You have two arrays, what is the purpose of each array?
2. How do you want the user to choose which cell of the array to write to? (i.e. click on that array cell, use a numeric control to select the array index, etc)?
3. Specifically, in what way is the program you posted different from what you want?
One basic suggestion is that if you want the value to change immediately after the user enters it into the text box, the easiest way to do this is by using an event structure.
Please provide some more information on how the program should work and maybe we can offer some further suggestions.
Regards,
Ryan K.