Click or drag to resize

DbServer.FieldValidate Method

Perform all the validations defined to the FieldSpec object of a field (for example, required, maximum and minimum digits, maximum and minimum value, validation rule) and return the result of the test.

Namespace:  VO
Assembly:  VORDDClasses (in VORDDClasses.dll) Version: 2.5
Syntax
 VIRTUAL METHOD FieldValidate(
	uField AS USUAL,
	uValue AS USUAL
) AS USUAL

Parameters

uField
Type: Usual
The name, number, or symbol representing the desired field.
uValue
Type: Usual
The value that is to be validated.  Its data type should be compatible with the data type of the specified field.  If the type cannot be converted to the appropriate data type, it is considered to have failed validation. See the Programmer's Guide for the rules on data type conversion; in general, any kind of conversion that is reasonable is done, including converting strings like 'TRUE' and 'T' to the logical value TRUE.

Return Value

Type: Usual
FALSE if any of the validations fail; otherwise, TRUE.
See Also