HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
4-: 47
Examples
110 DISP USING 100 !Uses the IMAGE statement at line 100
120 DISP USING Image1 !Uses the IMAGE statement at the line
125 !contained in Image1
130 DISP USING Image$ !Uses the IMAGE statement in Image$
160 DISP USING "5X" !Uses the image "5X"
200 IMAGE1: 2A 4X
ELSE
The ELSE statement is used as part of the IF THEN ELSE construct. It is
used to indicate what is to be executed if a specified numeric expression
is zero or FALSE. Refer to the IF THEN ELSE statement for information.
ENABLE
The ENABLE statement initiates the execution of any key-generated
branches in the interrupt queue that have been suppressed by a DISABLE
statement. No action is taken when the interrupt queue is empty. If
more than one branch is in the queue, then the branch with the highest
priority is executed immediately following execution of the ENABLE
statement. Subsequent branches are executed as described in the
"Priority of Handling the Branch" section in chapter 8.
Syntax
ENABLE
Examples
100 ENABLE
ENDIF
The ENDIF statement is part of the IF THEN ELSE construct. It is used
indicate the end of that construct. Refer to the IF THEN ELSE statement
for more information.
ENDLOOP
The ENDLOOP statement is part of the LOOP construct. It is used to
indicate the end of that construct. Refer to the LOOP statement for more
information.
END REPORT
The END REPORT statement closes a report normally. It causes all trailer
sections to be printed, including the report trailer.
This statement can occur anywhere in the report subunit. It can be used
as a command.
Syntax
END REPORT
Examples
The following example shows a line containing the END REPORT statement.
100 END REPORT
The END REPORT statement gives an error if there is not an active report.
If report output has not started, this statement starts the output.
The END REPORT statement prints all TRAILER sections in descending order
from level nine to level one. After these trailers, the REPORT TRAILER
section executes. Finally a PAGE TRAILER is printed and a page eject
occurs to clear the last page of the report.
The END REPORT statement is guaranteed to end the report, even if an
error occurs. Most errors are caught in the report sections and halt the
program, but a few errors can occur during END REPORT itself. Whether
there are errors or not, there are not active reports at the end of this