Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp Getenv() returns blanks
Message
 
À
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:
00040457
Vues:
53
>
>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

We recently upgraded from Novell 3.12 to Novell 4.11

We have FP 2.6 for windows on the network and used the GETENV('USERID')
to get the person's ID. The userid and longname were set up in the login script
when the user logged into Novell 3.12. We have found that we we upgraded to
Novell 4.11 some Win 3.1 users were not getting their log in scripts run at all so
intern the GETENV failed to get a userid and the user would have to manually
enter the id when they ran the program. Some users in Win 95 chose to not run
the Novell login script (an option in WIN 95) and thus the GETENV failed on them.

I would suggest 2 things

1. Go to a machine it is failing on and get to a DOS prompt in windows and do a SET, if the
environment variable is present then it is a foxpro problem.

2. If the variable is not present then depending on the Novell version there are programs
that will ask Novell who this user is who logged on.

We worked a very long time to get user validation and have found it very tricky if you
want to do automatic ID versus having the user enter a userid and password again, which
all users just love doing :).

Hope this helps
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform