Difference between revisions of "PUTENV()"

From Lianjapedia
Jump to: navigation, search
Line 18: Line 18:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Environment]]
 
 
[[Category:Environment Functions]]
 
[[Category:Environment Functions]]

Revision as of 08:30, 7 December 2012

Purpose

Function to update the value of an environment variable

Syntax

PUTENV(<expC1>,<expC2>)

See Also

ADDBS(), GETENV()

Description

The PUTENV() function updates the value of <expC1> with the character expression <expC2>. The value of the variable can be retrieved using the GETENV() function. If variable <expC1> does not exist, it is created. If the operation is successful, then PUTENV() returns .T., otherwise .F..

Example

putenv("APP_USER",user())