I am trying to detect empty text boxes when a button is pressed. To do so I am using an if statement for each variable like so:
If Len(variable.Text) = 0 Then
Messagebox.Show("please fill in all fields.")
End If
Is there a more efficient way where I can detect if the lengths of the strings within all the text boxes are equal to zero at the same time? Or if anyone wants to suggest a better method that would also be appreciated. Thanks.