Click or drag to resize

FieldSpec.PerformValidations Method

X#
Test a specified value to see if it passes all of this field specification's validation rules.

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

Parameters

uValue (Optional)
Type: Usual
The value to test.
arg (Optional)
Type: Usual
A second argument that is passed to the FieldSpec:Validate() method.

Return Value

Type: Usual
TRUE if the validation succeeded; otherwise, FALSE.
Tip Tip
If FALSE, the system sets FieldSpec:Status to the appropriate hyperlabel for the validation rule that failed; if TRUE, FieldSpec:Status is set to NULL_OBJECT.
Examples
The following example performs a validation and assigns the resulting status to a status bar message variable:
X#
1IF !oFS:PerformValidations(x)
2SELF:StatusBarMessage := oFS:Status
3ENDIF
See Also