s5v8i‖Environ Function

Contents
rk55H‖

# 3JaYP‖Environ Function

BGRpE‖Returns the value of an environment variable as a string. Environment variables are dependent on the type of operating system that you have.

## RFTEF‖Syntax:

    SnNZQ‖Environ (Environment As String)

## Ps9DM‖Return value:

String

## 5aaU3‖Parameters:

tbdD5‖Environment: Environment variable that you want to return the value for.

### SEjHR‖Error codes:

5 Invalid procedure call

## YuJE4‖Example:

    Sub ExampleEnviron
    Dim sTemp As String
        sTemp=Environ ("TEMP")
        If sTemp = "" Then sTemp=Environ("TMP")
    rKhKE‖    MsgBox "'" & sTemp & "'" ,64,"Directory of temporary files:"
    End Sub

Please support us!