The CallMethod function calls a method on a specified object.
Purpose:
This function calls a method on a specified object.
Syntax:
CALL ui.Interface.frontCall("WINCOM","CallMethod",
[ handle, method, arg1, ... ], [result] ) OR [ handle,
method(arg1, ...) ], [result] )
Note:
- handle is the handle returned by another frontcall (CreateInstance, CallMethod, GetProperty).
- method is the member name to call.
- arg1 (and ...) are the arguments to pass to the method
call. 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
(such as Excel or Word) is to initially test your code with a macro
of the manipulation you're expecting to do. According to the method
which is used, arguments may or may not be optional.
- result is either a handle or a value of a predefined type.
- result is -1 in case of error (use GetError to
get the description of the error).