VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Get Current User Name Single Line, NO API

by Brian Lai (10 Submissions)
Category: VB function enhancement
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

This code gets your user name *click* just like that.

Code 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.

Rate Get Current User Name Single Line, NO API

MsgBox Environ("USERNAME")

Download this snippet    Add to My Saved Code

Get Current User Name Single Line, NO API Comments

No comments have been posted about Get Current User Name Single Line, NO API. Why not be the first to post a comment about Get Current User Name Single Line, NO API.

Post your comment

Subject:
Message:
0/1000 characters