OP Execute On Server

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

version 6.0.6


OP Execute On Server (connectID; methodName; stackSize; processName; processID{; param}{; param2; ...; paramN}) Longint

ParameterTypeDescription
connectIDLongintUnique ID for the established connection
methodNameStringName of the process method
stackSizeLongintStack size of the process
processNameStringName of the process
processIDIntegerID of the process
paramStringParameter(s) to the method ([[10)
Function resultLongintError code

Description

The command OP Execute On Server starts a new process on the server machine. It has a limit of 10 optional parameters.

Note: This function may return a processID equal to 0 (zero).

OP Execute On Server does not return any error code if the method does not exist on the server — this case means that the process hasn't been started properly and should be handled as an error.

Note that you must pass variable names as strings in the param parameter, and not the values themselves. See the following example:

   Param1:="Smith"
   Param2:="John"
   Param3:="M"
   $error:=OP Execute On Server($connID;"myMeth";1024*64;$procID;"Param1";"Param2";"Param3")

See Also

OP Process number.


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