O'Reilly logo

Special Edition Using Microsoft® Visual Basic® .NET by Jeff Spotts, Brian Siler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Validating User Input

In addition to accepting input, validating that input is an important function of a data entry program. A typical data entry form contains validation code that must execute successfully before the information can be committed to the database. If the validation tests do not pass, then the program displays a message requesting that the user correct the erroneous data. When you build a form, certain types of controls do not require much or any validation code. For example, in a drop-down list the user is restricted to selecting a fixed set of choices that you, the programmer, control. However, a text box control allows the end user to enter almost any type of numeric or character data. Therefore, more stringent validation ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required