HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)

4- 46
|||| |
| 1 | 2 | 2 | B(1,2,2) |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 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) |
|||| |
---------------------------------------------------------------------------------------------
DISP USING
The DISP USING statement dictates the format of the values that it prints
by specifying either a format string or an IMAGE statement. The PRINT
USING statement is similar to the DISP USING statement. Table 4-4
compares them.
Table 4-4. Comparison of DISP USING and PRINT USING
---------------------------------------------------------------------------------------------
| | |
| Statement | Prints output to |
| | |
---------------------------------------------------------------------------------------------
| | |
| DISP USING | Standard list device. |
| | |
---------------------------------------------------------------------------------------------
| | |
| PRINT USING | ASCII data file, if specified; otherwise, the device specified by the |
| | most recently executed SEND OUTPUT TO statement. If that device is |
| | the standard list device, PRINT USING is equivalent to DISP USING. |
| | |
---------------------------------------------------------------------------------------------
Syntax
DISP USING
image
[;
output_item
[,
output_item
]...]
Parameters
image
Either a string expression or the line identifier of an
IMAGE statement. See "Format String and IMAGE
Statement" for more information.
output_item
Numeric or string expression. It can be a scalar
variable, an array element or a substring.