Vb string to int32

In this article let’s discuss about Vb string to int32. Let’s go through the following methods without any delay 🙂

Method 1:

Convert.toInt32(txtNumber.Text)
____________Ex.__________
Dim txtNumber As String = "6"
Dim intNumber As Integer = Convert.toInt32(txtNumber)

Method 2 :

Convert.toInt32(txtPrice.Text)

Hope the above methods works for you. Happy Learning and get back to us Anytime.

Realted Posts : Mongodb command remove by _id