Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting Network Name
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00632331
Message ID:
00632375
Vues:
21
>I use the following command in VFP6 to get the network user ID:
>
>cUserName = UPPER(ALLTRIM(SUBSTR(SYS(0),ATC("#",SYS(0))+1,40)))
>
>I tried this same command in Fox2.6 for win and I get a "0." Is this command not compatible?

Randall,
The command works (because it does retrieve the correct machine name) but the operating system may not support the means by which it attempts to determine the current user. What OS are you running it on? I tried it on Win2K and XP boxes. For both, I got 255 returned.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform