Check Values in an Array if Null
Posted on 2008-10-18
I'm trying to simplify my coding by putting all of my requirements in ONE potential line of code instead of assigning if functions to each silly variable i have, which leads me to my question.
I have a UI with text boxes, some of which can be left empty, some which cannot. What I'm looking for is a way to add an array containing those variables that cannot be empty, and if this is possible, for the program to check each variable (text box) for any indication that it's null, if so, throw up a msgbox stating the exact box which is empty before it writes anything to the db.
I'm currently working with a few basic text boxes. FirstName, LastName, DOB, Address, PhoneNumber.
Any help would be greatly appreciated!!