Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get the User ID...
Message
De
01/06/2001 12:49:04
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00513880
Message ID:
00513917
Vues:
12
>Yes ! But in my case we use Terminal Server.
>I think this is wy we get 255.
>

>>>In my case I cannot use the sys(0) because on Win 2000 that function return "Machine name #255" no mather which user is login.
>>>

>>>>>No! This return the Machine name. In our case the machine name will be deferent then the user ID.
>>>>>

>>>>Isn't the user name what occurs after the "#" in the return from SYS(0)?
>>
>>Really? I get the user name on my W2K.

this is what I've always used:
m/c name
left( sys(0), atcc( '#', sys(0) ) )
user name:
substr( sys(0), atcc( '#', sys(0)) +2 )

- jer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform