Share via


SYS(0) - Network Machine Information

SYS(0) returns network machine information when using Visual FoxPro in a network environment. The same functionality is available by using ID( ).

SYS(0)

Return Values

Character

Remarks

Machine information must first be assigned by the network software and the network shell must be loaded.

If machine information has not been assigned or the network shell hasn't been loaded, SYS(0) returns a character string consisting of 15 spaces, a number sign (#) followed by another space, and then 0. Consult your network documentation for further information on defining machine information.

SYS(0) returns 1 when using Visual FoxPro in a stand-alone environment.

When the machine is connected to a network, SYS(0) returns the machine name, a space, a number sign (#) followed by another space, and then the id of the current user (or the security context in which Visual FoxPro is running). For example:

? SYS(0)

returns the following format:

MACHINEID # userid

See Also

SYS( ) Functions Overview | ID( ) - Network Machine Information | Considering Hardware, Memory, and Network Issues