Click or drag to resize

NetName Function

X#
Identify the current workstation.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 FUNCTION NetName() AS STRING
Request Example 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#
1? NetName()        // Result: STATION 1
This example demonstrates the NetName() result when a workstation is started as a stand-alone unit:
X#
1? NetName()        // Result: NULL_STRING
See Also