Finding Specific item in a list..

BlitzMax Forums/BlitzMax Beginners Area/Finding Specific item in 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.

Bachfire, my view is, if you have a limited number of objects (e.g. 100 or so) use the loop method a la Brucey. For a beginner this is the least complicated way and will be quick enough. Once you start getting to a 1000s of object you might need to look into TMaps or saving the TLink in the type. These are considered a bit more complex (although some will argue otherwise).
I don't know what you're doing but I didn't know Tmaps existed for the first year and didn't really miss them.
For much of my 'tinkering' I still use the looping method. It helps to be aware of optimisations but you don't necessarily need to use them.
Run through that tutorial I link to as it REALLY helped me and many others here.