Share via


ID( ) Function - Network Machine Information

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

ID( )

Return Value

Character

Remarks

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

If computer information has not been assigned or the network shell hasn't been loaded, ID( ) 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.

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

When the computer is connected to a network, ID( ) returns the computer 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:

? ID( )

returns the following format:

MACHINEID # userid

See Also

Reference

SYS(0) - Network Machine Information

Other Resources

Functions

Language Reference (Visual FoxPro)