Hi
I wonder how I set “cout<< list.getText(list.selectedItemIndex);" to get the string with that name instead of only paste the name that is selected.

Let´s say I select “FIRE" in the list, and I have a string with the name FIRE.
How do I paste the string FIRE instead of the selected text "FIRE"?