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

Click here to load this message in the networking platform