In F mode, the @INDEX statement activates or deactivates the line number display for the current work file in the relevant data window (see also section “The work window”).
Operation | Operanden | F-Modus |
@INDEX | [ ON | LONG | OFF] |
ON | Activates line number display with 2 digits after the decimal point (default value). |
LONG | Activates line number display with 4 digits after the decimal point. |
OFF | Deactivates line number display. |
When an EDT session starts, the line number display is activated for both data windows of all work files.
If the line number display is activated in F mode by specifying @INDEX ON, then, depending on the employed terminal and the way it has been set with the @VDT statement (72 or 124 characters per line), the 6 digit line number display is output with a decimal point and a protected blank for the visual separation of the line contents.
If the line number display is activated in F mode by specifying @INDEX LONG, then, depending on the employed terminal and the way it has been set with the @VDT statement (70 or 122 characters per line), the 8 digit line number display is output with a decimal point and a protected blank for the visual separation of the line contents.
If the line number display is deactivated then 80 or 132 characters are output per line.
In all formats, the first column of each line forms the statement code column.
The setting for the line number display is saved separately for the upper and lower (possible) data windows corresponding to each work file. If only one data window is displayed on the screen then the setting is made for both (possible) data windows. In contrast, if the screen is split (see @PAR SPLIT) then it applies only to the work window in which it was entered even if the same work file is displayed in both work windows.
Specifying @INDEX ON resp. @INDEX LONG deactivates EDIT-LONG
mode (see the @EDIT statement).
The @PAR INDEX statement can be used instead of @INDEX. Furthermore, @PAR INDEX can be used for a specific work file or globally for all the work files and is also permitted in L mode and therefore in EDT procedures. Please refer to the description of the @PAR statement for information on which of the data windows of the specified work file @PAR INDEX applies to.
Example
The line number display is deactivated.
The work window is displayed without line numbers