Strings

BlitzMax Forums/BlitzMax Beginners Area/Strings

Josepho(Posted 2006) [#1]
Hi, if i have an string A how can i extract a string B of it?

Let me explain

A:string = "Hello who are you?"

Knowing for example the position of w (7) how can i extract "who are you?" and insert it on a B string?


TomToad(Posted 2006) [#2]
B:String = Mid(A,7,12)
or you can do
B:String = Right(A,12)


assari(Posted 2006) [#3]
or you can use slices

Print A[6..]


Josepho(Posted 2006) [#4]
Thank you!