Convert string to value : Convert from String « Data Type « VB.Net Tutorial






Class Tester
     Shared Sub Main()
        Dim userInput As String
        userInput = "4"

        Console.WriteLine(Val(userInput))
     End Sub

End Class
4








2.39.Convert from String
2.39.1.Is a string a numeric value
2.39.2.Convert string to value
2.39.3.Interpret numeric strings as a hexadecimal value and convert it to an unsigned long integer.