11.43 sendmethod()

This function puts a method call into the event queue to be executed asynchronously from the event loop (DM_EventLoop). It is therefore a convenience function for sending an external event with sendevent() and calling the method in the event rule for that external event.

sendmethod() supports a maximum of 14 arguments for the method call and cannot be used for methods with output parameters.

Return values from methods cannot be processed.

Definition

void sendmethod
(
      object   Object input,
      method   Method input
  { , anyvalue Arg1   input
    ...
    , anyvalue Arg14  input }
)

Parameters

object Object input
Object whose method shall be invoked asynchronously.
method Method input
Identifier of the method to invoke.
anyvalue Arg1 input
…
anyvalue Arg14 input
Arguments that are passed to the method.

Availability

Since IDM version A.06.02.g

See also

Built-in function sendevent()

C function DM_SendMethod