Strings

BlitzMax Forums/BlitzMax Beginners Area/Strings

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.

I would venture a guess that aString[10] = "b" is illegal to make sure people aren't trying to do something like this aString[10] = "blah". I know it easy to say "Duh, one letter per index", but Max has no char type and therefore no way to garuntee that only one character is assigned. What I'd like to know is why can't I do this aStr[10] = 66 to match the read.

Also, I think a StringBuffer object is a good idea.