Evaluating a String??

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

Stevie G(Posted 2003) [#1]
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))


GfK(Posted 2003) [#2]
Conversion is automatic, but you can use Int() for clarity.


ford escort(Posted 2003) [#3]
for exemple
v$="1234"
k=Left$(v$,2)
Print k+12
WaitKey

affiche 24 :)