Click or drag to resize

Control.Status Property (Typed)

X#
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 
Request Example View Source

Property Value

Type: HyperLabel
A 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:
X#
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:
X#
1IF !oControl:FieldSpec:Validate(x)
2WarningBox{SELF,oControl:Status}:Show()
3ENDIF
See Also