version 1.5
OP Open connection (serverID; connectionID; station; userName; password; taskName) Longint
Parameter | Type | Description | |
serverID | Longint | Unique ID of target server | |
connectionID | Longint | Unique ID for the established connection | |
station | String | Machine name for the server | |
administration window | |||
userName | String | 4D user name | |
password | String | 4D user password | |
taskName | String | Name of the process to be created on the server | |
Function result | Longint | Error code result for the function |
Description
OP Open connection opens a connection to a server by passing the serverID, stationName, userName, password and taskName. This function returns the connection reference number in the connectionID parameter.
Error Codes
If the function executes successfully, OP Open connection returns 0. Otherwise, this function returns one of the following errors:
Error Code | Description |
-12 | The maximum number of concurrent users for your |
4D Server license has been reached. | |
-13 | Your attempt to connect to 4D Server has not been successful |
due to a network problem, try again. | |
-108 | Not enough memory to perform this operation. |
-1277 | Open connection request was denied (ADSP time-out error). |
-9944* | The user does not belong to the 4D Open access group. |
-9947* | The "Allow 4D Client connections only" check box has been |
checked in the Preferences dialog box of 4D Client. | |
-9956 | 4D Open version not compatible with 4D Server. Or, the |
"Allow 4D Client connections only" check box has been checked in | |
the Preferences dialog box of 4D Client in version 1.1 of 4D Server. | |
-9978 | Invalid password. |
-9979 | Unknown user. |
10128 | The 4D Open for 4th Dimension package has not been initialized. |
10129 | The network component was not found. |
10133 | The server does not exist. |
10154 | This command cannot be executed right now. |
See Also
OP Close connection, OP Find 4D Server.