Memory.GetObjectProperty

variant Memory.GetObjectProperty ( 

number  Object,

string  Property )

Description

Get value from a property of COM Object.

Parameters

Object

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

Property

(string) Name Of property that you want get value from it.

Returns

(variant) Return value depends on that property that you want get it.

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") -- fill src property with the address of test pdf Memory.SetObjectProperty(PDFObject, "src", "C:\\Test.pdf") -- get value from 'src' property src = Memory.GetObjectProperty(PDFObject, "src") Dialog.Message("", src)

See also:  Related Actions

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