version 1.5
OP Get station name String
Parameter | Type | Description | ||||
This command does not require any parameters | ||||||
Function result | String | Workstation name |
Description
OP Get station name returns the name of the workstation on which the application is running.
On a Macintosh, this name is set in the Sharing Setup Control Panel.
On a computer running Windows, this name is set in the Network Control Panel
Example
C_LONGINT ($errCode;netCompID;$servID; $connID) C_STRING (32;$WS) $errCode := LoadNetComp ("TCP/IP";->netCompID) If ($errCode = 0) ` Turn the adress string into a server entry $errCode := OP Find 4D Server (netCompID;"accounting.4D.com";$servID) End if If ($errCode =0) ` Get workstation name $WS := OP Get station name ` Open connection with the server $errCode := OP Open connection ($servID; $connID; $WS; "Jerry"; "YRREJ";"DevSearch") End if