Click or drag to resize

FieldSpec.Validate Method

X#
A replaceable method for performing validations. The standard implementation evaluates the code block specified through FieldSpec:SetValidation().

Namespace:  VO
Assembly:  VOSystemClasses (in VOSystemClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD Validate(
	uValue,
	arg
) AS USUAL CLIPPER
Request Example View Source

Parameters

uValue (Optional)
Type: Usual
The value to be validated.
arg (Optional)
Type: Usual
A second argument that is passed to the code block specified from FieldSpec:SetValidation(). During FieldSpec:PerformValidations(), executed from a data window or data browser, this argument is the Control object or Column object.

Return Value

Type: Usual
TRUE if the value is valid; otherwise, FALSE.
Remarks
This method is called by FieldSpec:PerformValidations(), and should not normally be called by the developer. It is provided as a way for the developer to optionally use a customized validation technique. The standard implementation is:
X#
1METHOD Validate(uValue, uArg) CLASS FieldSpec
2RETURN cbValidation = NULL_CODEBLOCK;
3.OR. EVAL(cbValidation, uValue)
See Also