Easy System Variables
![Visual Basic 6, or VB Classic Visual Basic 6, or VB Classic](https://www.fortypoundhead.com//assets/img/icons/v7/vb6.png)
Easy way to return system variables
Original Author: Shane Manaton
Assumptions
none, none ,none
Side Effects
your coding becomes a lot quicker!!
API Declarations
None!!!
Code
Private Sub Form_Load()
For i = 1 To 30
MsgBox Environ(i), vbOKOnly, i
Next i
End Sub
I have seen loads of complicated code that does the same
Try this code, every system variable you need in one line of code
Usage:
MsgBox Environ("ComputerName")
MsgBox Environ("Path")
Etc
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.