Accessing fields inside a List.

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I am trying to Access fields from a Type which I added to a list, after browsing the forums it doesnt look like anyone has asked about this.

Basically I have this type

Entity_List:TList = CreateList()

Type Entity
Field X#,Y#,Z#
Field Model
End Type

Creating the object I just do.

E.Entity = New Entity
E.X# = 10
E.Y# = 10
E.Z# = 10


Now I also have a ListBox which keeps track of the objects created so I can select them however when I select them I would like the XYZ info to be printed to text boxes so how do I extract those fields?