Converting blitz3D to blitzmax problem
Blitz3D Forums/Blitz3D Beginners Area/Converting blitz3D to blitzmax problem
| ||
It appears that in the for loop I have, it doesn't have an "Each" function for blitzmax. Is there any equivalent command for this? Many thanks. |
| ||
BlitzMax uses EachIn EachIn: http://www.blitzbasic.com/bmdocs/command.php?name=EachIn&ref=2d_cat For: http://www.blitzbasic.com/bmdocs/command.php?name=For&ref=2d_cat BlitzMax online docs: http://www.blitzbasic.com/bmdocs/docs.php |
| ||
The Blitz3D FOR/EACH/NEXT function steps trough all elements of an type. To do this in BlitzMax you need to add the elements to a LIST first. Then you can step through them with FOR/EACHIN/NEXT. Look at the sample in Zenthrax's Eachin link... |
| ||
You could always try the auto-importer in the IDE to see how things end up, though the generated code will look a bit mechanical. |