Tiny Help with TLists

BlitzMax Forums/BlitzMax Beginners Area/Tiny Help with TLists

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

I have a main TList that has all my objects in it. Then I have a second TList that I'm using to also track the same objects that are in a certain state.

The problem is how do I get a specific object in a list so I can alter it's properties? I see the MyList.Last command but I'm not sure how I can actually get the last item. If I do a f:MyObject = MyList.Last it doesn't work. So basically the question is what is the correct syntax for getting an object from the list so I can change it's properties.

Any help is appreciated.