field-definition
identifies and describes a macro variable or string that you want to display in the
window. A window can contain any number of fields.
You use a field to identify a macro variable value (or constant text) to be displayed,
its position within the window, and its attributes. Enclose constant text in quotation
marks. The position of a field is determined by beginning row and column. The
attributes that you can specify include color, whether you can enter a value into the
field, and characteristics such as highlighting.
The form of a field definition containing a macro variable is
<row> <column> macro-variable<field-length> <options>
The form of a field definition containing constant text is
<row> <column>'text' | “text”<options>
The elements of a field definition are
row
specifies the row (line) on which the macro variable or constant text is displayed.
Each row specification consists of a pointer control and, usually, a macro
expression that generates a number. These row pointer controls are available:
#macro-expression
specifies the row within the window given by the value of the macro
expression. The macro expression must either be a positive integer or
generate a positive integer.
/ (forward slash)
moves the pointer to column 1 of the next line.
The macro processor evaluates the macro expression when it defines the window,
not when it displays the window. Thus, the row position of a field is fixed when
the field is being displayed.
If you omit row in the first field of a group, the macro processor uses the first line
of the window. If you omit row in a later field specification, the macro processor
continues on the line from the previous field.
The macro processor treats the first usable line of the window as row 1 (that is, it
excludes the border, command line or menu bar, and message line).
Specify either row or column first.
column
specifies the column in which the macro variable or constant text begins. Each
column specification consists of a pointer control and, usually, a macro
expression that generates a number. These column pointer controls are available:
@macro-expression
specifies the column within the window given by the value of the macro
expression. The macro expression must either be a positive integer or
generate a positive integer.
+macro-expression
moves the pointer the number of columns given by the value of the macro
expression. The macro expression must either be a positive integer or
generate a positive integer.
The macro processor evaluates the macro expression when it defines the window,
not when it displays the window. Thus, the column position of a field is fixed
when the field is being displayed.
%WINDOW Statement 347