INCLUDE
The INCLUDE attribute specifies acceptable values for a field, and causes 4GL
to check at runtime before accepting an input value.
field-tag is the field tag that you declared in the SCREEN section.
- alue is an element in a comma-separated list (within parentheses) of values
(value1, value2, . . . ), or a range of values (value1 TO value2), or any combination
of individual values and ranges.
Each value is a restricted expression that cannot include the name of any 4GL
variable nor programmer-defined function. It can include literal values, built-in functions and operators, and the constants TRUE and FALSE. The same rules for DEFAULT attribute values also apply to
INCLUDE values. TEXT fields and BYTE fields cannot have this attribute.
If a field has the INCLUDE attribute, the user must enter an acceptable value
(from the value list) before INFORMIX-4GL accepts a new row. If the value list
does not include the default value, then the INCLUDE attribute behaves like the
REQUIRED attribute, and an acceptable entry is required. Include the NULL
keyword in the value list to specify that it is acceptable for the user to press
the ENTER key without entering any value.
Related Attributes