Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp Getenv() returns blanks
Message
De
17/07/1997 15:58:36
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:
00040459
Vues:
65
>
>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,

Thanks for your suggestions.

On the machines that are failing, I had already tried going to DOS and type SET. The 'Full Name' is
present when I do this.

Also, we have purchased a copy of Gplib that has a ton of Novell functions in it and it does return
the user's Full name from with FPW26 or VFP3 without a problem.

I think something has changed with the Getenv() function from FPW26 to VFP3. FPW26' s Getenv()
always returns what we want, but VFP3 Getenv() works on about 50% of the machines tested here.

Has anyone else seen this?

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

Click here to load this message in the networking platform