FieldSpec.PerformValidations Method (Typed) | |
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.21
Syntax VIRTUAL METHOD PerformValidations(
uValue AS USUAL
) AS LOGIC
public virtual bool PerformValidations(
Usual uValue
)
Request Example
View SourceParameters
- uValue
- Type: Usual
The value to test.
Return Value
Type:
Logic
TRUE if the validation succeeded; otherwise, FALSE.
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:
1IF !oFS:PerformValidations(x)
2SELF:StatusBarMessage := oFS:Status
3ENDIF
See Also