Get Current User Name - Single Line, NO API!
![Visual Basic 6, or VB Classic Visual Basic 6, or VB Classic](https://www.fortypoundhead.com//assets/img/icons/v7/vb6.png)
This code gets your user name *click* just like that.
Original Author: Brian Lai
Returns
It returns your user name.
Side Effects
Not sure if it works on anything other than VB6 because I don't have anything to test on for VB4 and VB5.
Code
MsgBox Environ("USERNAME")
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.