PUTENV()

From Recital Documentation Wiki
Revision as of 17:16, 20 March 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

PUTENV()

Class

Environment


Purpose

Function to update the value of an environment symbol


Syntax

PUTENV(<expC1>,<expC2>)


See Also

GETENV()


Description

The PUTENV() function updates the value of <expC1> with the character expression <expC2>. The value of the symbol 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.. The PUTENV() function is very useful for passing parameters to Recital programs spawned in the background, when used in conjunction with the GETENV() function.


Example

set printer to spooler
putenv("db_print","/usr/recital/UD/print_labels")
list status to print
? getenv("db_print")
/usr/recital/UD/print_labels


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer