DataServer.FieldStatus Method (Typed) | |
Determine the status of a field in this data server after the last operation.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOSystemClasses (in XSharp.VOSystemClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD FieldStatus(
nFieldPosition AS USUAL
) AS HyperLabel
public virtual HyperLabel FieldStatus(
Usual nFieldPosition
)
Request Example
View SourceParameters
- nFieldPosition
- Type: Usual
The name, number, or symbol representing the desired field.
Return Value
Type:
HyperLabel
A HyperLabel object if any error condition had occurred or if a validation has failed, NIL if everything is OK, if the validation passed, or if there has been no validation attempt.
Remarks
In particular, DataServer:FieldStatus() can be used to find out more about a validation failure. By accessing the properties of this hyperlabel, you can retrieve not only a description of the condition that was raised, but also context-sensitive help on it. For example:
1oDataServer:FieldStatus(#LastName):Caption
2oDataServer:FieldStatus(#LastName):Description
3oDataServer:FieldStatus(#LastName):HelpContext
See Also