DataServer.FieldValidate Method (Typed) | |
Perform all the validations defined to the FieldSpec of a field in this data server (for example, required, maximum and minimum digits, maximum and minimum value, validation rule) and return the result of the test.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOSystemClasses (in XSharp.VOSystemClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD FieldValidate(
nFieldPosition AS USUAL,
uValue AS USUAL
) AS LOGIC
public virtual bool FieldValidate(
Usual nFieldPosition,
Usual uValue
)
Request Example
View SourceParameters
- nFieldPosition
- Type: Usual
The name, number, or symbol representing the desired field. - uValue
- Type: Usual
The value that is to be validated. Its data type should be compatible with the data type of the specified field. If the type cannot be converted to the appropriate data type, it is considered to have failed validation.
Return Value
Type:
Logic
FALSE if any of the validations fail; otherwise, TRUE.
See Also