FieldSpec.PerformValidations Method | |
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.19
Syntax VIRTUAL METHOD PerformValidations(
uValue,
arg
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual PerformValidations(
Usual uValue = default,
Usual arg = default
)
Request Example
View SourceParameters
- 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 |
---|
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