Input Validation

Trusting that a user will input the type of data required by your program is a leap of faith. You can, and should, provide hints to the user indicating the type of data and format your program requires; however, you should also include code in your program to check what the user enters against a required format. The process of checking user input for accuracy is known as validation. Validation should be included whenever input is required from the user and the format of that input cannot be guaranteed. Examples discussed thus far in this book include: the InputBox() function, the Text Box control, and spreadsheet cells. This may seem like a daunting task at first, but asking where the validation code needs to be entered in a program and when it needs to run, simplifies the task considerably.

Biorhythm Awareness

Biorhythm Awareness

Who else wants to take advantage of biorhythm awareness to avoid premature death, escape life threatening diseases, eliminate most of your life altering mistakes and banish catastrophic events from your life.

Get My Free Ebook


Post a comment