HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
4- 112
|||| |
| 2 | 1 | 1 | B(2,1,1) |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 2 | 1 | 2 | B(2,1,2) |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 2 | 2 | 1 | B(2,2,1) |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 2 | 2 | 2 | B(2,2,2) |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 3 | 1 | 1 | B(3,1,1) |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 3 | 1 | 2 | B(3,1,2) |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 3 | 2 | 1 | B(3,2,1) |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 3 | 2 | 2 | B(3,2,2) |
|||| |
---------------------------------------------------------------------------------------------
PRINT DETAIL IF
The PRINT DETAIL IF statement allows the Report Writer to suppress detail
lines without affecting the rest of the report generation. This
statement affects only the output associated with the DETAIL LINE
statement. All PRINT statements as well as all output generated by
report sections are unaffected. Additionally, all breaks and totaling
are done normally.
There cannot be more than one PRINT DETAIL IF statement in a report
description.
Syntax
[PRINT] DETAIL IF
boolean_expr
Parameters
boolean_expr
A numeric expression used to determine if printing
should take place. Output is suppressed if the
expression is false (zero).
Examples
100 DETAIL IF Pdi !Prints if Pdi is true.
100 PRINT DETAIL IF FNX > 0 !Prints if FNX is > 0.
The PRINT DETAIL IF statement becomes busy when BEGIN REPORT executes and
remains busy until an END REPORT or a STOP REPORT is executed. The
statement is executed by the execution of a DETAIL LINE statement.
When DETAIL LINE executes, the PRINT DETAIL IF expression is evaluated
just before detailed output takes place. That is, the statement is
executed immediately before the WITH and USING clauses of DETAIL LINE. If
the PRINT DETAIL IF expression is false (zero), the WITH and USING
clauses are NOT evaluated. All HEADER and TRAILER output still takes
place. Normal PRINT statements still produce output as well.
The following programs both suppress the output of DETAIL LINE. However,