OP Get station name

4D - Documentation   Français   English   German   4D Open for 4D, Command Theme List   4D Open for 4D, Command Alphabetical List   Back   Previous   Next

version 1.5


OP Get station name String

ParameterTypeDescription
This command does not require any parameters
Function resultStringWorkstation 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

4D - Documentation   Français   English   German   4D Open for 4D, Command Theme List   4D Open for 4D, Command Alphabetical List   Back   Previous   Next