>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement