How to access elements in a lists ?

BlitzMax Forums/BlitzMax Beginners Area/How to access elements in a lists ?

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.

Hello,

Let's say I have this "Tdot" type of "dots, containing X and Y fields and I create a list of 100 dots like this:

local DotList:Tlist = New Tlist
For i = 0 to 99

DotList.AddLast( Tdot.Create() )

next


Now that my 100 dots are created, how can I access, say, the 28th dot in the list and change the value of its X or Y field?

Thank a lot for helping, I'm stuck :)

Nino