Click or drag to resize

FieldSpec.PerformValidations Method (Typed)

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

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

Parameters

uValue
Type: Usual
The value to test.

Return Value

Type: Logic
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