LOL, thats true.
I also said it was AMBIGUOUS, not that it won't work. I used to do that too, when I was a newbie ROFL. I was just pointing out that it was not a very good programming practice. I also consider the code given by EdgeMeal:
to be not a very good programming practice since it is making things complex. I would rather use:Code:If Text1.Text = "" Then MsgBox "You must enter your name" Exit Sub End If MsgBox "Hello " & Text1.Text
Does that not work exactly like the former code? And its much simpler and easier to understand.Code:If Text1.Text = "" Then MsgBox "You must enter your name" Else MsgBox "Hello " & Text1.Text End If




Reply With Quote