English
Language : 

NSB8 Datasheet, PDF (55/158 Pages) List of Unclassifed Manufacturers – BASIC interpreter for Z80 family
ITALIAN TECHNOLOGY
grifo®
LINE
STATEMENT:
LINE <numeric expression>
LINE #<device expression>, <numeric expression>
ACTION:
The line length for the specified I/O device is changed to the value of the numeric expression, which
must be an integer from 10 to 132. The device expression must be numeric, and evaluate to an integer
from 0 to 7. If no device expression is specified, the desired device is assumed to be #0 (the console
terminal).
EXAMPLES:
100 LINE 132
70 LINE L(X)+40
250 LINE #3,B
900 LINE #D(Q), 64
REMARKS:
A fixed length input/output line is a necessity beceuse BASIC must keep track of the current PRINT
position on the terminal or screen in order for the TAB function to work correctly. Use of the LINE
statement allows the user or programmer to adjust this line length to the requirements of a particular
terminal device. For example, some video display devices (QTP xxx) provide for 20 or 40 character
lines, while integrated terminals usually have 80 character positions to a line. Printer units have line
lengths ranging from 40 to 132 characters.
Different line lengths may be in effect for different terminals at any one time.
If a line of output information is longer than the current line length for the given device, the line will
be split at the line length boundary and the rest of the output will be continued on the next line (a
carriare return is automatically generated by BASIC to advance the rest of the output to the next line).
If an attempt is made to INPUT more characters than are allowed on one line, a “LENGTH ERROR”
occurs.
LINE may be used as a direct statement.
Line lengths set by a LINE statement remain in effect until the session with BASIC is terminated. A
line length of 132, for example, will remain in effect even after the program which set it has ended.
When BASIC comes up, the initial length of device #0 (the console terminal) is 80 characters. The
initial value for each of the seven other possible system I/O devices is also 80. These initial values
may be changed using procedures which are covered in section PERSONALIZING BASIC.
ERROR MESSAGES:
OUT OF BOUNDS ERROR
The device number or line length specified in the LINE statement is out of range.
SEE ALSO:
Section FUNCTIONS (in detail the built in TAB function)
Statement INPUT
Statement INPUT1
Section PERSONALIZING BASIC
NSB8
Rel. 5.10
Page 43