Search Tools Links Login

Easy System Variables


Visual Basic 6, or VB Classic

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

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 94 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.