Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp Getenv() returns blanks
Message
De
18/07/1997 13:26:17
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00040395
Message ID:
00040627
Vues:
77
>> We are in the process of converting from FPW2.6 to VFP3 on a Novell
>> Network.
>>
>> In FPW26, we always used Getenv('FullName') to retrieve the user "Full
>> Name" from the network.
>> This always worked fine. However, in VFP3 the same Getenv('FullName')
>> function will work on
>> a few machines but in most cases the function returns a blank. The
>> workstation PCs are
>> running either Win95 or Win31. The Getenv() fails on both types of
>> workstaions.
>>
>> Has anybody else noticed this behaviour? How did you work around it?
>
>Much better to use the WNetGetUser() Windows API function. I used this
>and noticed no change when the network was switched from Novell to NT.
>This also is not reliant on a DOS environment variable that the user can
>change.

Yes, but this will return the username not the full name. :)
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
Répondre
Fil
Voir

Click here to load this message in the networking platform