Error Catching Visual Basic 2005
I would like to validate that the input entered in is greater than 0 or is not blank. The problem that I am having with my code is that it will give the message but will continue on with the program and output the results. I would like for the program to stop and allow the user to correct the input value.
err1 = "Please enter a value greater than zero"
numDays = txtDays.Text
If numDays <= 0 Or Nothing Then
more code here