Hi, I'm trying to build a GUI list of an array.
I have this array which has 3 values: String 1, String 2, String 3.
I want to be able to list all those values like:
and if I click on them, I get the location of it in the array. If I click String 1, I get array.
I think it's possible to build this with a for loop and build a GUI button for every item in the array, but I'm not sure how to create new buttons and assign them to the array's object.
Is there another way to do this or are the buttons the best method?
And of course I want the buttons to update if I add to the array.
answered Mar 29 '10 at 06:04 AM