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.
Contoh:
Sub ExampleEnviron
Dim sTemp As String
sTemp=Environ ("TEMP")
If sTemp = "" Then sTemp=Environ("TMP")
MsgBox "'" & sTemp & "'" ,64,"Drektori berkas temporer:"
End Sub