Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Machine dependent SYS(0)/NT 4.0 Problem
Message
From
17/09/1998 09:36:43
 
 
To
17/09/1998 07:41:39
Bob Tracy
Independent Consultant
Driftwood, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00137717
Message ID:
00137754
Views:
19
>I have a problem that appears to be machine dependent. I am using SYS(0) to get the current login and use that to look up names in a table to set privileges on the menu. I've been using this same technique for several years with no problems.
>
>On my most recent application (VFP 5.0a), the program cannot associate the login with the names in the table on two of ten machines. All are running NT 4.0 SP3. The offending machines will not recognize any logins, the working machines will recogize all logins so I don't think it's a matter of errors in the table names or the code that parses the SYS(0) string.
>
>Anyone seen this before? TIA

Instead of SYS(0), try using the API call GetComputerName() to retrieve the NetBIOS name of the machine.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform