Evaluating a String??

Blitz3D Forums/Blitz3D Beginners Area/Evaluating a String??

I've looked up the command reference and can't find anything ... surely there is a command to convert a string to an integer like so??

t$="1024":s%=integervalue??(left$(t$,2))

Conversion is automatic, but you can use Int() for clarity.

for exemple
v$="1234"
k=Left$(v$,2)
Print k+12
WaitKey

affiche 24 :)