A bit of a issue here. I have a form in a Visual Studio 2005 project, the form has 90 edit boxes on it. I have a save function which saves all the values in the 90 edit boxes to a database, but before saving i need to ensure that these editboxes are not blank and if they are I need an error message to pop up and the save operation to abort.
Currently I have the following code:
Public Function checkfornulls()
If Form1.editbox1.Text = "" Then
MessageBox.Show("Screen 1, target 1 is blank! Value must be a number.")
one of these for each of the 90 edit boxes.... now while this works, it's poorly coded and I need to know a better way to do it, some kind of loop or something.