Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieving user's loginname
Message
 
 
To
09/07/1999 14:19:22
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00239556
Message ID:
00239660
Views:
15
>In Visual Fox, the function sys(0) will return the user's logon name. Is there a similar function available in Visual Basic? I hope I don't have to go into Win API just to get the user's name.

AFAIK, the only way to do this in VB is to use the API, I'm sorry to say.

Look up the declaration in the API viewer for GetUserName, that oughta do the trick.

Hugo
"My get up and go must've got up and went"
-Steve Tyler, Aerosmith
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform