Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API Call for getting user
Message
 
 
À
05/02/1997 12:47:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00019360
Message ID:
00022627
Vues:
30
>>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),''))

I jdont know if I said thanks or not but 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

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform