Hello,
I'm trying to do something but I need some help.
Basically I have a PopupMenu, and when one of the values is selected, some other values are displayed in 3 text fields.
Now I want to do something like this
Array that contains PopupMenu options, containing " ", "a" and "b"
Array containing the values displayed in the Text field, containing " ", " ", " ", "bla", "blabla", "blablabla", "da","dada", "dadada".
Now I want that when a user selects " ", the first 3 values of the second array appear respectively in 3 Text fields. If he selects "a", the second 3 values and so on.
Note: I want to avoid doing an If statement for each possibility, so that I can just add more values to the two arrays in the future and have the program do the rest.
How can I do it?
I'm trying to do something but I need some help.
Basically I have a PopupMenu, and when one of the values is selected, some other values are displayed in 3 text fields.
Now I want to do something like this
Array that contains PopupMenu options, containing " ", "a" and "b"
Array containing the values displayed in the Text field, containing " ", " ", " ", "bla", "blabla", "blablabla", "da","dada", "dadada".
Now I want that when a user selects " ", the first 3 values of the second array appear respectively in 3 Text fields. If he selects "a", the second 3 values and so on.
Note: I want to avoid doing an If statement for each possibility, so that I can just add more values to the two arrays in the future and have the program do the rest.
How can I do it?