Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Login name and SYS(0) different
Message
From
18/10/2012 20:23:13
 
 
To
18/10/2012 17:14:57
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01555309
Message ID:
01555315
Views:
83
As far as I know sys(0) returns "computername#username".
 cComputerUser = Sys    (0)
 cComputer     = Left   (cComputerUser, At ("#", cComputerUser) - 2)
 cUser         = Substr (cComputerUser, At ("#", cComputerUser) + 1)

 MessageBox ("ComputerName: " + cComputer + " User Name: " + cUser)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform