Call Method
The Call method runs the procedure specified by the prochandle object.
This method has the following syntax:
[retval =] prochandle.Call(arguments)
The
arguments are specified exactly as in a callproc statement (see
Callproc Statement).
If prochandle is a local procedure that is part of a frame or a global procedure, the following restrictions apply:
• Do not invoke the Call method after the frame or global procedure in which it was defined has finished running.
• Invoke the Call method only from the thread in which the GetProcHandle was issued (an openframe creates a new thread).
These restrictions do not apply to a prochandle that represents a global procedure or a local procedure that is defined in a user class script.
Note: To access the prochandle for a user class procedure, do not invoke the GetProcHandle method directly from the initialize (constructor) code block. Instead, use a defined method, calling it from the initialize block if necessary.
Do not use the Call method in an expression. It can be used only by itself in a statement or on the right side of an assignment.
Last modified date: 06/25/2024