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.19
Syntax VIRTUAL METHOD FieldValidate(
uField,
uValue
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public override Usual FieldValidate(
Usual uField = default,
Usual uValue = default
)
Request Example
View SourceParameters
- uField (Optional)
- Type: Usual
The name, number, or symbol representing the desired field. - uValue (Optional)
- 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