Click or drag to resize

FieldSpec.Validate Method (Typed)

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

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

Parameters

uValue
Type: Usual
The value to be validated.
arg
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: Logic
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