qb45advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
ENVIRONMENT$ Function Details
  QuickSCREEN      Details      Example      Contents      Index
──────────────────────────────────────────────────────────────────────────────
ENVIRON$ Function Details
 
Syntax
  ENVIRON$ (environmentstring)
  ENVIRON$ (n)
 
The environmentstring is a string constant or variable containing
the name of an environment variable. The argument n is a numeric
expression.
 
If you specify an environmentstring name, but it cannot be found in
the environment-string table, or there is no text following it, then
ENVIRON$ returns a null string. Otherwise, ENVIRON$ returns the text
following the equal sign in the environment-string table.
 
If you specify a numeric argument (n), the nth string in the
environment-string table is returned. In this case, the string
includes all of the text, including the environmentstring name.
If the nth string does not exist, ENVIRON$ returns a null string.
The n argument can be any numeric expression; it is rounded to an
integer.