Basic
LOC(buffer)
Communications. Returns the number of characters in the input
queue.
Buffer
is the number assigned to the file when you opened it.
If more than
255
characters are in the input queue,
LOC
always
returns
255.
If
fewer are there,
LOC
returns the actual number of
characters waiting to be read.
IF
LOC(X)>0THEN1000
LOCATE
[r~~][,[~~lumn][,[cursor][,[sta~-t][,stop]]]]
Positions the cursor on the screen at the position indicated by
row
and
column.
Cursor
indicates whether the cursor is visible or invisible.
1
=
visi-
ble and
0
=
invisible.
Start
is
the first scan line
of
the cursor.
Stop
is the last scan line of the cursor.
Start
and
Stop
can be in the range
0
to
7.
LOCATE
10,20,1
,4
LOCATE
24,l ,1
,3
LOF(buffer)
Returns the length of the file in bytes.
Buffer
is the number assigned
to the file when you opened it.
Y
=
LOF(5)
LOF(buffer)
Communications. Returns the amount
of
free space in the input
queue.
Buffer
is the number assigned to the file when you opened it.
You can use
LOF
to determine when an input queue is getting full
so
that transmission is stopped.
IF
LOF(X)
<
20 GOT0 1000
42