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
◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Assign an output-line width to a device (such as a printer) or file, or
change the number of screen-display columns and rows.
WIDTH [columns%] [,rows%]
WIDTH {#filenumber% | device$}, columns%
WIDTH LPRINT columns%
■ columns% The desired width in columns. Screen display width
must be 40 or 80 columns.
■ rows% The desired screen-display height in rows. The value
can be 25, 30, 43, 50, or 60, depending on your
display adapter and screen mode.
■ #filenumber% The number of an open file or device.
■ device$ The name of a device:
SCRN:, COM1:, COM2:, LPT1:, LPT2:, LPT3:
Example:
OPEN "LPT1:" FOR OUTPUT AS #1
WIDTH #1, 132
See Also ◄PRINT, LPRINT► ◄SCREEN► ◄VIEW PRINT►