HP 3000 Manuals

WIDTH [ HP Pascal/iX Reference Manual ] MPE/iX 5.0 Documentation


HP Pascal/iX Reference Manual

WIDTH 

WIDTH is an HP Pascal Option.

The WIDTH compiler option sets the number of columns of each source line
that the compiler will read.

Syntax 

     $WIDTH integer$

Parameter 

integer       In the range 10..132.

Default       132.

Location      Anywhere.

The WIDTH option allows the compiler to ignore text beyond a specified
column.

The WIDTH option applies only to the file that contains it, and not to
files that it includes (see the INCLUDE option).  If File1 with width n 
includes File2, the width while File2 is being included is specified by
File2 (if File2 does not contain a WIDTH option, the width defaults to
132.)  At the end of File2, the width returns to n.

Example 

              1         2         3         4
     1234567890123456789012345678901234567890 <--- Column number guide

     $WIDTH 30$
     PROGRAM show_width (output);      The compiler ignores this text
     BEGIN                             since it is beyond column 30.
        writeln('The width is 30');
        $INCLUDE 'File2'$
        writeln('The width is 30');
     END.

     File2:

     $WIDTH 40$
     writeln('The width is 40');       This text (31-40) is not ignored.
     $WIDTH 20$
     writeln('Hi');                    This text (beyond 20) is ignored.



MPE/iX 5.0 Documentation