Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API Call for getting user
Message
From
05/02/1997 12:47:40
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00019360
Message ID:
00019369
Views:
33
>Does anyone have a sample of getting the user name in VFP 5. I know I have done this before but I simply cannot find the code. Probably did it in something like a:\test.prg then said "Oh, that was easy..." del a:\*.*...

* DECLARE DLL statement to get the user logged into the network
DECLARE INTEGER GetUserName in WIN32API String @,Integer @

LOCAL lcUser
lcUser=SPACE(20)
GetUserName(@lcUser,20)
lcUser=UPPER(STRTRAN(lcUser,CHR(0),''))
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform