OP Open connection

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 Open connection (serverID; connectionID; station; userName; password; taskName) Longint

ParameterTypeDescription
serverIDLongintUnique ID of target server
connectionIDLongintUnique ID for the established connection
stationStringMachine name for the server
administration window
userNameString4D user name
passwordString4D user password
taskNameStringName of the process to be created on the server
Function resultLongintError 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 CodeDescription
-12The maximum number of concurrent users for your
4D Server license has been reached.
-13Your attempt to connect to 4D Server has not been successful
due to a network problem, try again.
-108Not enough memory to perform this operation.
-1277Open 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.
-99564D 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.
-9978Invalid password.
-9979Unknown user.
10128The 4D Open for 4th Dimension package has not been initialized.
10129The network component was not found.
10133The server does not exist.
10154This command cannot be executed right now.

See Also

OP Close connection, OP Find 4D Server.


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