VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Using the Environ function

by Mark F (1 Submission)
Category: Miscellaneous
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (10 Votes)

This is something that hopefully will help someone who is looking for a fast way of getting some system environment settings.

Rate Using the Environ function

In the debug window type the following:
For x = 1 to 80: ? Environ(x): next x
What is returned can also be used in your code. The Environ function is inlcuded in the vb runtime.
e.g. 
strWinDirectory = Environ("windir")
No need to vote, just hope this helps someone.

Download this snippet    Add to My Saved Code

Using the Environ function Comments

No comments have been posted about Using the Environ function. Why not be the first to post a comment about Using the Environ function.

Post your comment

Subject:
Message:
0/1000 characters