>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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only