Basic
ENVIRON$
[("parameter
id")]
[(number)]
Advanced Function. Returns the specified environment string from
BASIC's Environment String Table.
Parameter
id
is the parameter for which to search and must be
enclosed in quotation marks.
Number
specifies which parameter to return by its position within
the table.
Number
and
parameter
id
are
mutually exclusive; only one may be
specified on the command line.
PRINT ENVIRON$("PATH")
E
OF(
buffer)
Detects the end
of
a
file.
Buffer
is
the number assigned to the file
when you opened
it.
Sequential files: EOF returns
0
(false), when the end-of-file record
has not been read yet, and
-1
(true), when
it
has been read.
Direct access files:
EOF
returns
-
1
(true) if the last executed GET
statement was unable to read an entire record because of an attempt
to read beyond the physical end of the file.
IF EOF(1) THEN GOTO1540
E OF(
buffer)
Communications. Detects an empty input queue for communications
files.
Buffer
is
the number assigned to the file when you opened it.
ASCII mode: EOF returns
-
1
(true) if
a
CONTROL-Z is received.
EOF remains true until the device
is
closed.
Binary mode: EOF returns
-
1
(true) when the input queue is empty.
EOF becomes false when the input queue is not empty.
IF
EOF(3)
THEN RETURN
Tandy
1000
31