Click or drag to resize

Control.Status Property

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

Property Value

Type: Usual
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