Tandy 1000 Basic Reference Manual page 150

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

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 i d
by an equal sign
( = )
or a space. BASIC reads the
first nonblank, nonequal sign character after the
parameter i d
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 i d
=
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
E N V I R O N " P A T H = A : \ "
sets the default path to the root directory on Drive A.
E N V
I
R 0
N " S A L E S
=
MY S A L E S "
sets the name SALES equal to MYSALES. The Environment
String Table now looks like this:
P A T H = A : \ ; S A L E S = M Y S A L E S
148

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents