Being a vb.noob as basically most of the vb.net world, I use the Try/Catch
statement quite a bit for when it comes to errors, as the following.
With Me
.Text = "a"
Try
.Text += 1
Catch ex As Exception
MsgBox("error: " & ex.Message, MsgBoxStyle.Critical)
End Try
MsgBox("a")
.Text = "b"
Try
.Text += 1
Catch ex As Exception
MsgBox("error: " & ex.Message, MsgBoxStyle.Critical)
End Try
MsgBox("b")
End With
For the first time today, I attempted to use the On Error Resume Next
and it returned the results I needed; less lines of code and only results if an error occured.
On Error Resume Next
With Me
.Text = "a"
.Text += 1
MsgBox("a")
.Text = "b"
.Text += 1
MsgBox("b")
End With
My question is, even though quite clear to me:
For such lines of code as above, is the On Error Resume Next
appropriate and can I move on to the next part of my.app with no worries, ever?.thanx.in.adv,.Me.