Control.Status Property (Typed) | |
A hyperlabel indicating the status of the control after a validation attempt or other action.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax VIRTUAL PROPERTY Status AS HyperLabel GET SET
public virtual HyperLabel Status { get; set; }
Request Example
View SourceProperty Value
Type:
HyperLabelA 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