This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
SET ENVIRONMENT VARIABLE

SET ENVIRONMENT VARIABLE 


 

SET ENVIRONMENT VARIABLE ( varName ; varValue ) 
Parameter Type   Description
varName  String in Variable name to set
varValue  String in Value of the variable or "" to reset default value

The SET ENVIRONMENT VARIABLE command allows you to set the value of an environment variable under macOS and Windows. It is meant to be used with the  LAUNCH EXTERNAL PROCESS command. It also works with the PHP Execute command.

Pass the name of the variable to define in varName and its value in varValue.

  • To get the general list of environment variables and possible values, please refer to the technical documentation of your operating system.
  • Three specific environment variables are available for use in the context of the LAUNCH EXTERNAL PROCESS command: 
    _4D_OPTION_CURRENT_DIRECTORY
    _4D_OPTION_HIDE_CONSOLE (Windows only)
    _4D_OPTION_BLOCKING_EXTERNAL_PROCESS

    For information on these variables, please refer to the documentation for the LAUNCH EXTERNAL PROCESS command. 

Example  

Refer to examples of the LAUNCH EXTERNAL PROCESS command.



See also 

LAUNCH EXTERNAL PROCESS

 
PROPERTIES 

Product: 4D
Theme: Tools
Number: 812

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Modified: 4D v11 SQL

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)