FieldSpec Class |
|
Namespace: VO
The FieldSpec type exposes the following members.
| Name | Description | |
|---|---|---|
| Decimals |
A numeric value representing the number of decimals defined to this field specification.
| |
| HyperLabel |
The hyperlabel connected to this field specification.
| |
| Length |
A numeric value representing the length defined to this field specification.
| |
| Maximum |
A numeric value representing the maximum value in the range validation for this field specification.
| |
| Minimum |
A numeric value representing the minimum value in the range validation for this field specification.
| |
| MinLength |
A numeric value representing the new minimum length validation for this field specification.
| |
| MinLengthHL | Error message when MinLength validation fails. | |
| Nullable | Is the field Nullable ? | |
| Picture |
A string representing the picture clause defined to this field specification. It is used by the FieldSpec:Transform() method.
| |
| RangeHL | Error message when Range validation fails. | |
| Required |
Logical value indicating whether the field is required (TRUE) or not (FALSE).
| |
| RequiredHL | Error message when Required validation fails. | |
| Status |
After a validation request (see FieldSpec:PerformValidations() for details), this contains a HyperLabel object that describes the results of the validation or NULL_OBJECT if the validation passed.
| |
| UsualType |
A constant, representing the data type defined to this field specification:
| |
| Validation |
A code block that sets the validation rule for this field specification.
| |
| ValidationHL | Error message when Validation fails. | |
| ValType |
A one-character string representing the data type defined to this field specification:
|
| Name | Description | |
|---|---|---|
| _SetType | ||
| AsString |
Return the caption defined to this field specification's hyperlabel; if no caption is defined, return the name defined to the hyperlabel.
| |
| PerformValidations |
Test a specified value to see if it passes all of this field specification's validation rules.
| |
| SetLength |
Set a new length for this field specification and new hyperlabel diagnostics for the length check.
| |
| SetMinLength |
Set a new minimum length validation for this field specification and new hyperlabel diagnostics for the minimum length check.
| |
| SetRange |
Set a new range validation for this field specification and new hyperlabel diagnostics for the range check.
| |
| SetRequired |
Set a new required validation for this field specification and new hyperlabel diagnostics for the required check.
| |
| SetType |
Set a new data type for this field specification and new hyperlabel diagnostics for the data type check.
| |
| SetValidation |
Set a new validation rule for this field specification and new hyperlabel diagnostics for the validation rule check.
| |
| Transform |
Convert a specified value into a string, formatted according to this field specification's picture clause.
| |
| Val |
Convert a string to a value, according to this field specification's defined data type.
| |
| Validate |
A replaceable method for performing validations. The standard implementation evaluates the code block specified through FieldSpec:SetValidation().
|