Using string as array

BlitzMax Forums/BlitzMax Beginners Area/Using string as array

Czar Flavius(Posted 2008) [#1]
I'm loading my level data from a file and I plan to store this in a C-style string/character to traverse through with all kinds of ugly loops and things to get the data. How can I be able to do this:

For a = stuff
stuff = stuff[a]
Next


Perturbatio(Posted 2008) [#2]
Global data:String = "ABCDEFGHIJKLMNOP1234567890"

For Local i:Int = 0 To data.length-1
	Print data[i..i+1]
Next



Czar Flavius(Posted 2008) [#3]
Oh.... yeah!! Thanks.