NAME

width - set the width of output lines

SYNOPSIS

width Size
width #FileNum, Size
width lprint Size

DESCRIPTION

Width immediately changes the width of output lines printed to the screen, a file or the printer.  The width of a device is the number of characters that will fit on a single line of the device.  To avoid printing too many characters on a single line, the sequential output statements will interject a newline character when necessary.  Since this facility is often undesirable, it can be turned off and the device is said to have "no width."

Size is a numeric expression which must be between zero and 255 and specifies the new width.  A Size of zero is the same as one.  A Size of 255 turns the width off.  The first form of the width statement changed the width of the screen.  The second form changes the width of the file given by FileNum.  FileNum is a numeric expression.  The final form of the width statement changes the width of the printer (see lprint). 

EXAMPLE

Line 20 opens file number one and line 30 changes the current width to 40 characters per line. 
	20 open "datafile" for output as #1
	30 width #1, 40
In the next example, the width of the screen is set to 40 columns per line. 
	width 40

SEE ALSO

lprint

DIAGNOSTICS

If FileNum is not open, an "Bad file number" error occurs. 

If Size is less than 0 or greater than 255, an "Illegal function call" error occurs. 

from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber