Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== CallFunction Function ====== ==== Description ==== Execute an OpenInsight stored procedure function remotely. ==== Syntax ==== Error = CallFunction(Queue, ReturnValue, Function, Arg1, Arg2, ...) ==== Parameters ==== The CallFunction function has the following parameters. ^Parameter^Description^ |Queue|Handle for the queue, created by [[createqueue|CreateQueue()]].| |ReturnValue|The value returned from the remote function call.| |Function|Name of the remote function to be executed.| |Arg1, Arg2, ...|Arguments to the OpenInsight remote function. Pass as many as the function requires.\\ \\ Note: Arguments are passed by reference; that is, if the called function changes the arguments then your program will see the changes.|| ==== See Also ==== [[callsubroutine|CallSubroutine()]] ==== Example ==== <code> // Call the TEST_SERVER function, returning the value in ReturnValue, 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 ReturnValue = 0 Error = CallFunction(Queue, ReturnValue, "TEST_SERVER", a:"", b, c:"", d) </code> guides/programming/programmers_reference_manual/callfunction.txt Last modified: 2024/06/19 20:20by 127.0.0.1