[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
WIDTH Set Output Width
WIDTH [{#filenum | device},] width
Sets the maximum width for a specified output device; Turbo Basic
sends a carriage return to the device when the specified width has
been reached.
width A numeric expression in the range 0 to 255. A value of 0
is equivalent to a value of 1.
device A string expression. Legal values are "SCRN:", "LPT1:",
"LPT2:", "LPT3:", "COM1:", "COM2:", and their lowercase
equivalents.
filenum A numeric expression in the range 1 to 15; specifies a
file opened for output.
-------------------------------------------------------------------------
Notes: WIDTH size and WIDTH "SCRN:" size both set the screen
width. In this case, size must be either 40 or 80 (only 80
is allowed on the IBM Monochrome Display).
In medium-resolution graphics, a WIDTH size statement
clears the screen, sets the border color to black, and
switches to high-resolution graphics. If the display is
already in high-resolution graphics and a WIDTH size
statement is issued, the screen is cleared, the border is
set to black, and the mode is set to medium resolution.
A WIDTH device,size statement can be issued before device
has been OPENed. If device is already open, this statement
has no immediate effect until the device is CLOSEd first
and OPENed again.
In the WIDTH #filenum,size statement, the number sign (#)
must be included, and filenum must refer to an already
open file or device. The width of the specified device is
changed immediately.
Note that each printer defaults to a WIDTH of 80.
Specifying a WIDTH of 255 disables the automatic
generation of a carriage-return.
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson