Click or drag to resize

NetName Function

Identify the current workstation.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.2a
Syntax
 FUNCTION NetName() AS STRING
View Source

Return Value

Type: String
The workstation ID as a string up to 15 characters in length.  If the workstation ID was never set or the application is not operating under Microsoft LAN Manager, it returns a NULL_STRING.
Remarks
Examples
This example demonstrates the NetName() result when a workstation is started as a network node with a station identifier of "STATION 1":
X#
? NetName()                // Result: STATION 1
This example demonstrates the NetName() result when a workstation is started as a stand-alone unit:
X#
? NetName()                // Result: NULL_STRING
See Also