Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WHO AM I in Novell
Message
De
08/11/1998 07:42:26
 
 
À
08/11/1998 07:32:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00155101
Message ID:
00155555
Vues:
21
>Hi Sergio,
>
> You can user ID() function of VFP, It gives the login name as well as user name on novell network.
> Try ?ID(), I think this will solve your problem.

There is no internal ID() function in VFP; the SYS(0) function comes close, but is not (at least IMO) the best solution - it returns a string consisting of the NetBIOS name of the local machine followed by a ' # ' followed by the local userid in at least a Microsoft Networking network environment, but has somewhat inconsistent behavior both standalone and under NetWare, and does not provide a way to determine the userid used to log into a specific resource - often, I'm more interested in the userid used to log into the server than I am with the local machine userid. The API call WNetGetUser() is capable of doing both jobs, and behaves consistently.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform