Val(stringValue)

Parses a given String into its integer equivalent.

Dim ST1 As String * 12
Dim i As Integer
ST1 = "123"
i = Val(ST1)               ' 123 is stored in variable I as a number.

See also ValHex and ValSng.

Go CUBLOC home