Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp Getenv() returns blanks
Message
De
17/07/1997 13:56:00
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00040395
Message ID:
00040440
Vues:
64
>GETENV("myvar") will return the value of a DOS environment variable myvar. It is possible that the batch file that loads the Novell stuff at startup or the login script to set the value of this variable on some stations and not on others. The Dos SET command will display all the env vars and their values.
>
>HTH
>Sorin
>
>>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?
>>
>>We bought a copy of Gplib and this got us around the problem by using a gplib function to
>>return the user's full name.
>>
>>Jerryt


I have FPW26, VFP3, and VFP5 installed on my workstation. The Getenv() function will return my Novell
Full Name from any version of Fox just fine. I can do this from the command window or from any versions
of our custom EXEs.

On the other PCs that only have the runtime of FPW26 and VFP3, only the
FPW26 EXEs will return the user's Novell full name. All of the VFP3 EXEs will NOT return the user's
Novell full name.

The line of code I use in both FPW26 and VFP3 custom apps is the same.

x = GETENV('full_name')

FPW26 return the full name
VFP3 does not.

Jerryt
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform