How do I convert from a string to an integer? Here\'s what I tried:
Price = CInt(Int(txtPrice.Text))
I took out the Int and I
Int
You can try these:
Dim valueStr as String = "10" Dim valueIntConverted as Integer = CInt(valueStr)
Another example:
Dim newValueConverted as Integer = Val("100")