INCLUDE

The INCLUDE attribute specifies acceptable values for a field, and causes 4GL to check at runtime before accepting an input value.

4GLREF00000044.gif

field-tag is the field tag that you declared in the SCREEN section.

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

AUTONEXT
FORMAT
REVERSE
COLOR
INVISIBLE
UPSHIFT
COMMENTS
NOENTRY
VALIDATE LIKE
DEFAULT
PICTURE
VERIFY
DISPLAY LIKE
PROGRAM
WORDWRAP
DOWNSHIFT
REQUIRED