GetObject
- get handle to already running OLE object

Miscellaneous functions
(AmiBroker 6.40)


SYNTAX GetObject( path, class )
RETURNS OBJECT
FUNCTION The function obtains a handle to already running OLE object, providing functionality equivalent to JScript GetObject and VBScript GetObject
EXAMPLE Version(6.38); // minimum required version
Workbook = GetObject("e:\\Full_Path\\To_File\\Sheet.xls", "");
Excel = Workbook.Application;
Excel.Visible = True;
Worksheet = Excel.ActiveSheet;
Range = Worksheet.Range("A1", "A1");
Range.Value = 123;
SEE ALSO CreateObject() function , CreateStaticObject() function

References:

The GetObject function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.