Control.Status Property | |
A hyperlabel indicating the status of the control after a validation attempt or other action.
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax VIRTUAL PROPERTY Status AS USUAL GET SET
public virtual Usual Status { get; set; }
Request Example
View SourceProperty Value
Type:
UsualA hyperlabel indicating the status of the control after a validation attempt or other action.
Remarks
If the validation passed or the operation was successful, this value is NULL_OBJECT; if not, it contains information about the failure, which can be retrieved and displayed—for example:
1IF !oControl:FieldSpec:Validate(x)
2WarningBox{SELF, oControl:Status:Caption,;
3oControl:Status:Description}:Show()
4ENDIF
Hyperlabels are commonly used in the system, and in this case, the warning box is capable of accepting a hyperlabel and extracting the relevant information from it. Thus, this example can be simplified even further:
1IF !oControl:FieldSpec:Validate(x)
2WarningBox{SELF,oControl:Status}:Show()
3ENDIF
See Also