CallMethod

The CallMethod function calls a method on a specified object.

Syntax

Important: This feature is deprecated, and may be removed in a future version.
CALL ui.Interface.frontCall("WINCOM","CallMethod",
  [ handle, method, arg1, ... ], [result] )  
  • handle is the handle returned by another front call (CreateInstance, CallMethod, GetProperty).
  • method is the WINCOM method to call.
  • arg1 (and ...) are the arguments to pass to the method call.
  • result is either a handle or a value of a predefined type. -1 in case of error.

Usage

Depending on the syntax allowed by the version of the program you're interacting with, arguments might be used inside brackets or outside.

The best way for Microsoft™ applications is to initially test your code with a macro of the manipulation you're expecting to do. Depending on the method used, arguments may or may not be optional.

In case of error, result is set to -1. Use GetError to get the description of the error.