Modul
Isi
Indeks 🔎︎

# Environ Function

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

## Sintaksis:

    Environ (Environment As String)

## Nilai hasil:

String

## Parameter:

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

## Kode kesalahan:

5 Tidak sah dalam pemanggilan prosedur

## Contoh:

    Sub ExampleEnviron

    Dim sTemp As String

        sTemp=Environ ("TEMP")

        If sTemp = "" Then sTemp=Environ("TMP")

        MsgBox "'" & sTemp & "'" ,64,"Drektori berkas temporer:"

    End Sub