IMAGE [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Reference Manual
IMAGE
The IMAGE statement specifies the output format for the output items in
the display list of a DISP USING or PRINT USING statement. If the image
of a DISP USING or PRINT USING statement is a line identifier, the line
identifier must identify an IMAGE statement. Because an IMAGE statement
can end in an unquoted string literal, it cannot be followed by a
comment. The IMAGE statement is not executable.
Syntax
IMAGE format_string
Parameters
format_string format_string (if it belongs to an IMAGE statement) or
its value (if format_string itself is the image of a
PRINT or DISP statement) has the following syntax:
format_spec [, format_spec]...
[num_expr] (format_spec[, format_spec]...)
format_spec One of the format specifiers described in "Format
Specifiers" in chapter 6.
num_expr Repeat factor. Rounded to a short integer, n. The
format_string n(format_spec_list) is equivalent to n
adjacent copies of format_spec_list (see examples).
Examples
100 DISP USING 110; A,B,C
200 PRINT USING 210; A,B,C
300 DISP USING 310; P,Q
400 PRINT USING 410;A,R
The IMAGE statements that they reference are:
110 IMAGE DDD,XX,DDD,XX,DDD,XX
210 IMAGE 3 (DDD,XX)
310 IMAGE DDDDD,XX,ZZZ.DD
410 IMAGE 5D,2X,3Z.DD
The format strings of lines 110 and 210 are equivalent, as are the format
strings of lines 310 and 410. In line 210, three is the repeat factor
represented by num_expr, above. In line 410, the numbers 5, 2, and 3 are
also called repeat factors; "Digit Symbols" and "Space Specifications" in
chapter 6 explain them.
MPE/iX 5.0 Documentation