bas7qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WIDTH Statements
  Syntax  Details  Example                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
WIDTH {#filenumber% | device$}, width%
WIDTH LPRINT width%
WIDTH {screenwidth% | ,screenheight% | screenwidth%, screenheight}
 
    ■ #filenumber%     Identifies an output device for which to change the
                         output-line width.
    ■ device$          A string expression with the value
                         SCRN:, COM1:, COM2:, LPT1:, LPT2:, or LPT3:
    ■ screenwidth%     The maximum number of text characters per line on
                       the display screen; an integer expression with a
                       value of 40 or 80 (default is 80).
    ■ screenheight%    The maximum number of text lines on the screen;
                       a numeric expression with an integer value of
                       25, 30, 43, 50, or 60.
     ■ width%          For WIDTH, the width of the output-line for the
                       file or device. For WIDTH LPRINT an integer value
                       between 1 and 255 (default is 80). A carriage return
                       and line feed will be sent to the printer after this
                       number of characters is printed in a line.
 
    ■ Not all of the argument values are valid in every case; it depends on
      the installed display adapter and the screen mode established by the
      most recently executed SCREEN statement.
 
See Also    SCREEN Statement  VIEW PRINT  LPRINT