Click or drag to resize

DbServer.FieldValidate Method (Typed)

X#
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:  XSharp.VO.SDK
Assembly:  XSharp.VORDDClasses (in XSharp.VORDDClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD FieldValidate(
	uField AS USUAL,
	uValue AS USUAL
) AS LOGIC
Request Example View Source

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: Logic
FALSE if any of the validations fail; otherwise, TRUE.
See Also