Little problem understanding types...

Blitz3D Forums/Blitz3D Programming/Little problem understanding types...

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.

when I need to update all of my types, i use this code

For Type.Type = each Type
[update code]
Next

But when I need to update one Type of this collection in particular, I select the type by one of its field, for instance :

For Type.Type = each Type
If Type\Name$ = "mark sibly"
[update code]
Endif
Next

My Level Editor and my Game are built on this principle and all seem to be perfect.