LogiView

Function 'environment'

     

This function returns the value of an environment variable of the client or the server.

Available environment parameters include:

CLI_VER client version
CLI_HWS client hardware key
CLI_DSP client display (Motif only)
CLI_HST client host name
DTV_VER server version
DTV_HWS server hardware key
DTV_HST server host name
SINGLE_WILDCARD single wild card character (.e.g "?")
MULTI_WILDCARD multiple character wild card (.e.g "%")
SYSTEM_LANGUAGE The current language of the system. In case a macro is used to set the system language via lng_set_act_sys, only SYSTEM_LANGUAGE is updated, and the value for SYSTEM_LANGUAGE can be different from the value set in UI_LANGUAGE.
USER_LANGUAGE The current language of the current user. In case a macro is used to set the user language via lng_set_act_usr, only USER_LANGUAGE is updated, and the value for USER_LANGUAGE can be different from the value set in DATA_LANGUAGE.
UI_LANGUAGE The system language defined by the default LANGUAGE_SYSTEM
DATA_LANGUAGE The user language defined by the default LANGUAGE_USERDATA
any_other_name user-defined parameter (can be defined with the Agile e6 command line parameter '-p').
 

Syntax:

  {STR_VAR}= environment ({STR_EXPR})
 

I/O parameters:

{STR_EXPR} name of environment parameter (see description).
-  
 

Return value:

 
{STR_VAR} This string contains the value of the environment variable.
 

Example:

  Declaration of Variables
 
10 DOCU_STRING_1 = environment("DTV_HWS")

20 put(DOCU_STRING_1)
 

Result:

Functions and commands: Operating System Interface