Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the User ID...
Message
From
01/06/2001 12:49:04
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00513880
Message ID:
00513917
Views:
11
>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
Map
View

Click here to load this message in the networking platform