ExamineEnvironmentVariables()

Syntax

Result = ExamineEnvironmentVariables()
Description
Starts to examine the environment block of the program.

NextEnvironmentVariable(), EnvironmentVariableName() and EnvironmentVariableValue() may be used to read the individual environment variables.

Parameters

None.

Return value

Nonzero if the environment block can be read, zero otherwise.

Example

  ; Will output all environment variables of the program
  ;
  OpenConsole()
  If ExamineEnvironmentVariables()
    While NextEnvironmentVariable()
      PrintN(EnvironmentVariableName() + " = " + EnvironmentVariableValue())
    Wend
  EndIf
  PrintN("")
  PrintN("Press Enter to quit.")
  Input()

See Also

NextEnvironmentVariable(), EnvironmentVariableName(), EnvironmentVariableValue()

Supported OS

All

<- EnvironmentVariableValue() - Process Index - GetEnvironmentVariable() ->