Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check for user name in Novell
Message
De
03/10/1997 08:46:20
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
02/10/1997 20:42:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00052969
Message ID:
00053031
Vues:
35
>I need to access the username or logon ID
>from vfp50? Can vfp50 perform logic
>on the username comming from Novell?


Robert,

Our Novell Administrator inserted this code into the login script.

DOS SET long_name = %login_name%

I'm not sure about the exact syntax but this is more or less it. What this does is sets each user's
login name to a environmental variable of your choice, such as "long_name" in this example.

So whoever logs into this machine, his "long_name" is set to his login name.

We then use the VFP GETENV() function to retrieve the information like this.

l_userid = GETENV("long_name")

Another solution is to purchase a third party product like GPLIB that has these functions
build in and don't require anything placed into the Novell login script.

Jerry Tovar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform