version 6.0.6
OP Execute On Server (connectID; methodName; stackSize; processName; processID{; param}{; param2; ...; paramN}) Longint
Parameter | Type | Description | |
connectID | Longint | Unique ID for the established connection | |
methodName | String | Name of the process method | |
stackSize | Longint | Stack size of the process | |
processName | String | Name of the process | |
processID | Integer | ID of the process | |
param | String | Parameter(s) to the method ([[10) | |
Function result | Longint | Error 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