Left() = retro?

BlitzMax Forums/BlitzMax Beginners Area/Left() = retro?

Grisu(Posted 2006) [#1]
Hi all!

Im trying to get rid of the "BRL.Retro" module in my app.

Can someone tell me what the new command for left(), right() and mid() is? I mean a faster function that does the same job?

Grisu


TomToad(Posted 2006) [#2]
For Left()
Local String1:String = "123456"
Local String2:String = String1[..3]
Print String2

And for Right()
Local String1:String = "123456"
Local String2:String = String1[Len(String1)-3..]
Print String2



tonyg(Posted 2006) [#3]
mystring:String="Hello World"
Print mystring[..5]
Print mystring[6..]

?