>I use the following command in VFP6 to get the network user ID:
>
>cUserName = UPPER(ALLTRIM(SUBSTR(SYS(0),ATC("#",SYS(0))+1,40)))
>
>I tried this same command in Fox2.6 for win and I get a "0." Is this command not compatible?
Randall,
The command works (because it does retrieve the correct machine name) but the operating system may not support the means by which it attempts to determine the current user. What OS are you running it on? I tried it on Win2K and XP boxes. For both, I got 255 returned.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao