Int to string

BlitzMax Forums/BlitzMax Beginners Area/Int to string

Ian Lett(Posted 2007) [#1]
ok so this may seem like a no brainer, but i cannot work out how to convert an int to a string simply, some one please put me out of my misery.

Ian


tonyg(Posted 2007) [#2]
myint:Int = 1
print myint+myint
mystring:String = myint
Print mystring+mystring

If you want to make it more readable you can
state
mystring:string=string(myint)


Brucey(Posted 2007) [#3]
or even ...
myInt:int = 1

myString:String = String.FromInt(myInt)



Ian Lett(Posted 2007) [#4]
Doh!.

simple when you know how, thanks guys you have been a great help
Ian