Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API Call for getting user
Message
From
05/02/1997 13:07:08
 
 
To
05/02/1997 12:47:40
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00019360
Message ID:
00019372
Views:
35
>>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),''))

THANK YOU!!!! Its already implimented. Many, many thanks.
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Previous
Reply
Map
View

Click here to load this message in the networking platform