Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object Uncategorized Methods >

Clib.getenv() Method


This method returns a specified environment-variable string.

Syntax

Clib.getenv(varName)

Parameter
Description

varName

The name of an environment variable

Returns

The value of the named environment variable.

Usage

This method returns the value of an environment variable when given its name.

Example

The following line of code displays the current path:

TheApplication().RaiseErrorText(Clib.getenv("PATH=" + "PATH"));

See Also

Clib.putenv() Method

Siebel eScript Language Reference