Environ Function

Syntax:

Environ[$](Index)

 

-or-

Environ[$](Name)

 

Group:

Miscellaneous

 

Description:

 

Return an environment string.

 

Parameter

Description

Index

Return this environment string's value. If there is no environment string at this index a null string is returned. Indexes start at one.

Name

Return this environment string's value. If the environment string can't be found a null string is returned.

 

 

 Example:


Sub Main
  Debug.Print Environ("Path")
End
Sub