Chapter
10
I
BASIC
Ke,ywords
ENVIRON
Advanced Statement
ENVIRON
“parameter
id
=
text” [;“parameter
id
=
text”,
. .
.I
Lets you modify BASIC’s Environment String Table, such as
changing the PATH parameter for a child process
or
passing pa-
rameters
to
a
child process. BASIC’s Environment String Table
is initially empty.
Parameter
Id
is the name
of
the parameter.
Text
is the new parameter text. It must be separated from
pa-
rameter
id
by an equal sign
(=)
or
a space. BASIC reads the
first nonblank, nonequal sign character after the
parameter
id
as
the
text.
If you omit
text,
or specify a null string
or
a
semicolon
(
;
),
BASIC removes the parameter from the Environment String
Table and compresses the table.
Parameter
id
=
text
must be enclosed in quotation marks and be
typed in all uppercase characters.
When you change a parameter in the Environment String Table,
BASIC deletes the old parameter and adds the new one to the
end
of
the table.
If the parameter does not exist in the Environment String Table,
BASIC adds it to the end
of
the table.
For
more information on Environment String Tables, see the
Pro-
grammer’s Reference
manual
for
your computer. It is available
at
your Radio Shack Computer Store.
Examples
ENVIRON
“PATH=A:
\”
sets the default path to the
root
directory on Drive A.
E
NV
I
R
0
N
“SAL
E
S
=
MY
S
A
L
E
S”
sets the name SALES equal to MYSALES. The Environment
String Table now looks like this:
PATH=A:\;SALES=MYSALES
148