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
Example
Dim a as byte, s As XRAM string * 10
s = "123"
a = Val(s) 'convert string
Print a
End