>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.