Tandy 1000 Basic Reference Manual page 151

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 10
I
BASIC Keywords
ENVIRON$
Advanced Function
ENVIRON$ [('>parameter
id")]
[(number>l
Returns the specified environment string from BASIC's Environ-
ment String Table.
Parameter i d
specifies the parameter for which to search. ENVI-
RON$ returns the text string for
parameter id. If
the parameter
does not exist or does not contain a text string, ENVIRON$ re-
turns a n empty string.
Parameter i d
must be enclosed in quota-
tion marks. If you omit
parameter id,
you must specify
number.
Number
specifies which parameter t o return by its position
within the table. ENVIRON$ returns the text string for the
number
parameter. If there is not a parameter in that position,
ENVIRON$ returns an empty string. If you omit
number,
you
must specify
parameter id.
Parameter i d
and
number
are mutually exclusive, only one may
be specified on the command line.
For more information on the Environment String Tables, see the
Programmer's Reference
manual for your computer. It is available
a t your Radio Shack Computer Store.
Example
If you execute the following ENVIRON statements:
E N V I R O N " P A T H = A :
\ I '
E N V I R O N " S A L E S = M Y S A L E S "
the Environment String Table looks like this:
P A T H = A : \ ; S A L E S = M Y S A L E S
The command PRINT ENVIRON$("PATH") prints
A:
\
.
T h e command P R I N T ENVIRON$(B) p r i n t s SALES
=
MYSALES.
149

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents