G
Grant
I want to be able to accept a value in "goToTextBox.Text" if it is a decimal
value such as 3.4. My Try statement currently catches non-numeric or blank
data, which I want to retain. How can I accomplish this?
T.I.A.
Grant
Try
Dim goToInteger As Integer = Integer.Parse(goToTextBox.Text) - 1
If goToInteger < 0 Or goToInteger > countInteger Then
Statements........
Else
Statements........
End If
Catch theException As Exception
MessageBox.Show("Non numeric data or blank field.", "Selection
Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
With goToTextBox
.Focus()
.SelectAll()
End With
End Try
value such as 3.4. My Try statement currently catches non-numeric or blank
data, which I want to retain. How can I accomplish this?
T.I.A.
Grant
Try
Dim goToInteger As Integer = Integer.Parse(goToTextBox.Text) - 1
If goToInteger < 0 Or goToInteger > countInteger Then
Statements........
Else
Statements........
End If
Catch theException As Exception
MessageBox.Show("Non numeric data or blank field.", "Selection
Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
With goToTextBox
.Focus()
.SelectAll()
End With
End Try