Click or drag to resize

FieldSpec Methods

X#

The FieldSpec type exposes the following members.

Functions
  NameDescription
Public methodAsString
Return the caption defined to this field specification's hyperlabel; if no caption is defined, return the name defined to the hyperlabel.
Public methodCode examplePerformValidations
Test a specified value to see if it passes all of this field specification's validation rules.
Public methodSetLength
Set a new length for this field specification and new hyperlabel diagnostics for the length check.
Public methodSetMinLength
Set a new minimum length validation for this field specification and new hyperlabel diagnostics for the minimum length check.
Public methodSetRange
Set a new range validation for this field specification and new hyperlabel diagnostics for the range check.
Public methodSetRequired
Set a new required validation for this field specification and new hyperlabel diagnostics for the required check.
Public methodSetType
Set a new data type for this field specification and new hyperlabel diagnostics for the data type check.
Public methodSetValidation
Set a new validation rule for this field specification and new hyperlabel diagnostics for the validation rule check.
Public methodTransform
Convert a specified value into a string, formatted according to this field specification's picture clause.
Public methodVal
Convert a string to a value, according to this field specification's defined data type.
Public methodValidate
A replaceable method for performing validations. The standard implementation evaluates the code block specified through FieldSpec:SetValidation().
Top
See Also