Accessing fields inside a List.

BlitzMax Forums/BlitzMax Programming/Accessing fields inside a List.

When you add a gadget item to a listbox you are able to specify an extra object. After the user selected the listbox item you can find the index of the item with SelectedGadgetItem. Now you can get the entity using "Entity(GadgetItemExtra(listbox,index))".