HP 3000 Manuals

DISP USING [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

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.

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



MPE/iX 5.0 Documentation