Memory.CallObjectFunction

variant Memory.CallObjectFunction ( 

number  Object,

string  FunctionName,

variant  Arg1,

variant  Arg2,

variant  ...,

variant  ArgN )

Description

Call a COM Object Function.

Parameters

Object

(number) COM Object that returned from Memory.CreateObject.

FunctionName

(string) Name of function that you want call it.

Arg1

(variant) First that must be passed to Com Object (can be string or number).

Arg2

(variant) Second that must be passed to Com Object (can be string or number).

ArgN

(variant) Nth that must be passed to Com Object (can be string or number).

Returns

(variant) Return value depends on that function you call.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

Example

-- Create a PDF Object in a tree PDFObject = Memory.CreateObject(Tree.GetProperties("Tree1").WindowHandle, "AcroPDF.PDF.1") -- Call 'GetVersions' function with no parameter Ver = Memory.CallObjectFunction(PDFObject, "GetVersions") Dialog.Message("", ver)

See also:  Related Actions

Сайт управляется системой uCoz