VAL ( )
Action
Converts a string representation of a number into a number.

Syntax
var = Val( s )

Remarks

var A numeric variable that is assigned with the value of s.
s Variable of the string type.
var : Byte, Integer, Word, Long, Single.

See also
STR


Example


Dim a as byte, s As XRAM string * 10
s = "123"
a = Val(s) 'convert string
Print a
End