The control attributes are usually required when you need to define the behavior of the application while executing the statement to which these attributes are assigned. Some of them—for example, STYLE or IMAGE—may also define the presentation of information displayed.
Pay extra attention to the attributes supported by INPUT, INPUT ARRAY, CONSTRUCT and DISPLAY ARRAY sub-interactions, as they differ from the attributes that can be assigned to the same but standalone statements. The list of them for the DIALOG clauses is reduced, since some functions are transferred to the DIALOG statement.
The ACCEPT and CANCEL attributes are used to indicate whether the default Accept or Cancel action should be added to the dialog window.
Syntax:
<attr_name>: {ACCEPT, CANCEL}
<value>: {true, false, 1, 0, <var>}
Examples:
ATTRIBUTE(ACCEPT = TRUE, CANCEL = TRUE)
ATTRIBUTE(ACCEPT = 1, CANCEL = 1)
ATTRIBUTE(ACCEPT = FALSE, CANCEL = FALSE)
ATTRIBUTE(ACCEPT = var1, CANCEL = var2)
This attribute can only be used for DIALOG, INPUT, and INPUT ARRAY
The HELP attribute is specified within the attribute clause to define the help message associated with the statement that is a literal integer or a program variable. For example:
The NAME attribute is used to set the unique name to the statement within which it is assigned to make easier the further manipulations with it.