For example, a telephone number may include the digits 0-9, and the non-numeric characters "+" and "-", as well as spaces and brackets. Permitted character check - useful for determining whether an input string contains valid characters.Some common data validation requirements are outlined below. Even so, we can think in general terms about the kind of data validation required for a typical application, and how it might be implemented. In a software project of any size, the task of determining what is and what isn't valid data is usually undertaken long before any code is written, and is part of an initial requirements analysis phase. For our Visual Basic applications, we will need to work a little harder to ensure that the input is valid, because we will need to define and code our own validation rules. Database management systems like Oracle or Microsoft Access provide extensive facilities for creating data validation rules. The validation rules used will depend on the application, and in particular on the type of data being input to the program. Data validation rules can also make an application more user friendly, since they enable the program to warn the user immediately when there is a problem rather than simply allowing them to continue entering data until the program crashes or some other problem occurs. input that does not obey the validation rules) can be dealt with in a pre-defined way, and will not cause the program to crash or produce spurious output. Input not meeting the program's requirements (i.e. Such measures involve the application of validation rules to any data being input to the program. There are however measures that can be taken to restrict the program's input to valid data. Nor can they guarantee that any data files used by the program will be free of errors and in the correct format. Although the programmer will obviously take every precaution to ensure the correct operation of the program, and will attempt to eliminate bugs that could cause a problem through a rigorous process of testing, they have no real control over mistakes made by the user during data entry. Data validation is the process of ensuring, at least as far as is possible, that the data given to a program by a user or from a file (essentially, the program's input) is of the correct type, and in the correct format.
0 Comments
Leave a Reply. |