>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