guides:programming:programmers_reference_manual:callsubroutine

CallSubroutine Function

Execute an OpenInsight stored procedure subroutine remotely.

Error = CallSubroutine(Queue, Procedure, Arg1, Arg2, …)

The CallSubroutine function has the following parameters.

ParameterDescription
QueueHandle for the queue, created by CreateQueue().
ProcedureName of the remote stored procedure to be executed
Arg1, Arg2, …Arguments to the OpenInsight stored procedure. Pass as many as the subroutine requires.

Note: Arguments are passed by reference; that is, if the called function changes the arguments then your program will see the changes.
// Call the TEST_SERVER function as a subroutine, running on a previously created queue.  Four parameters are passed.

Error = CreateEngine(Engine, "\\.\REVCAPI_TEST",  "SYSPROG",**CREATE_ENGINE_OPEN_ALWAYS$,  1)**

**// error processing for CreateEngine**

**E**rror = CreateQueue(Queue, Engine, "", "", "SYSPROG")

// error processing for CreateQueue

Error = CallSubroutine(Queue, "TEST_SERVER", a:"", b, c:"", d)
 
 
 
 
  • guides/programming/programmers_reference_manual/callsubroutine.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1