Computer Science, asked by fatimamusarrat83, 8 months ago

what is validation and types of validation in vb 6.0

Answers

Answered by nihiradas18
0

Answer:

Explanation:

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.

Types of validation-

1.Permitted character check - useful for determining whether an input string contains valid characters. For example, a telephone number may include the digits 0-9, and the non-numeric characters "+" and "-", as well as spaces and brackets.

2.Type check - the data entered must be of the correct datatype. If an integer value is expected, floating-point values (or any other non-integer values) will not be accepted.

3.Format check - this sort of check is often applied to things like dates. Programs often expect dates to be entered in a very specific format (e.g. dd/mm/yyyy or dd:mm:yyyy). The same principle can be applied to things like credit card or bank account numbers, where a specific minimum number of digits is expected and non-numeric characters (usually) not permitted.

4.Range check - often used for numeric values that must fall within a pre-defined range of values (for example, permitted operating temperatures, a person's age, or a valid day of the month).

5.Limit check - used for numeric values that must either be greater than or equal to some lower limit, or less than or equal to some upper limit (e.g. a minimum order quantity, or the maximum number of books someone can borrow from a library at one time).

6.Value entered check - used for things like required fields in online forms where the user must enter some data (for example their name or telephone number) and must not leave the field blank.

Similar questions