Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Visual Basic, Enterprise
Expertise: Intermediate
Feb 9, 1999



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Stop Data Input Errors Before They Start

When developing a database program, always keep the data-input user in mind. The most elegant program in the world is useless if the data is riddled with errors. If a database field requires integers and no text, or text and no integers, the best way to prevent input errors is to use the VB5 KeyPress event to filter out unacceptable input. The KeyPress event can examine each keystroke as it occurs, and accept or reject it on the basis of any criteria you choose. Clever input filtering will save a lot of error-checking time at the other end.
Steve Renaker
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date