Difference between revisions of "GETENV()"

From Lianjapedia
Jump to: navigation, search
(Syntax)
(Description)
 
Line 9: Line 9:
  
 
==Description==
 
==Description==
The GETENV() function returns the value of the environment variable <expC>.
+
The GETENV() function returns the value of the environment variable <expC>. If the environment variable does not exist then the default <cDefault> is returned.
  
 
==Example==
 
==Example==

Latest revision as of 03:58, 10 February 2023

Purpose

Function to get environment information

Syntax

GETENV(<expC> [,<cDefault>] )

See Also

ACCESS(), ADDBS(), GETGID(), GETPID(), GETUID(), HOME(), PUTENV()

Description

The GETENV() function returns the value of the environment variable <expC>. If the environment variable does not exist then the default <cDefault> is returned.

Example

? getenv("DB_DATADIR")
C:\lianja\data\