Language Reference Guide : 4. System Classes : SessionObject Class : SetEnv Method
 
Share this page                  
SetEnv Method
The SetEnv method sets the value of an environment variable.
This method has the following syntax:
integer = SessionObject.SetEnv(envstring = varchar(256))
This method has the following parameter:
envstring
Specifies the environment variable in the form 'variable=value'.
For example, the following statement sets the LIB environment variable:
status = CurSession.SetEnv(envstring = 'LIB=c:/ingres/lib');
The method returns either ER_OK or ER_FAIL. Descriptions of system constant values and their numeric equivalents are listed in Error Codes).