Use this field-, record-, or file-level keyword to define the leading attribute of the field that changes to a specified attribute whenever the cursor is located in the field.
When defined at both the field- and record-level, the field-level specification is used for the field. The ENTFLDATR keyword is ignored when the workstation is not attached to a controller that supports an enhanced data stream.
ENTFLDATR[([color] [display attribute] [cursor visible])]
The parameters are optional for the keyword.
The color parameter specifies the color the field will change to when the cursor enters the field on a color workstation. The parameter is specified as an expression of the form (*COLOR value).
If the color parameter is not specified, the default is white.
The display-attribute parameter specifies the display attributes of the field when the cursor enters the field. The parameter is specified as an expression of the form (*DSPATR value1 <value2 <value3...>>).
The default display attribute is HI.
The cursor visible parameter allows the user to specify if the cursor is visible or invisible when it enters the field. *CURSOR means the cursor will stay visible and *NOCURSOR indicates that the cursor will become invisible when it enters the field. *CURSOR is the default. When *NOCURSOR is specified on the ENTFLDATR keyword, the specified field must have an I (inhibit keyword entry) in position 35. If the field does not have data type I, than the default is used for the visible cursor parameter.
The field containing the ENTFLDATR keyword must be an input-capable field. The ENTFLDATR keyword is ignored for the field with DSPATR(PR).
Option indicators are valid for this keyword.
If the ENTFLDATR keyword is specified with the EDTMSK keyword, you might have unpredictable results.
The following example shows how to specify the ENTFLDATR keyword:
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 A A R RECORD A F1 10A B 3 4ENTFLDATR A F2 10A B 13 4ENTFLDATR((*COLOR RED)) A F3 10I B 16 4ENTFLDATR(*NOCURSOR (*DSPATR HI RI))
In this example, the color turns white, the attribute is high intensity, and the cursor is visible for F1. For F2, the color is red, the attribute is high intensity, and the cursor is visible. For F3, the color is white, the attributes are high intensity and reverse image, and the cursor is not visible.