GoFiler Legato Script Reference
Legato v 1.5b Application v 5.24b
|
Table of Contents | < < Previous | Next >> |
Chapter Fifteen — Windows/OS Functions (continued)
Overview
The OLEGetObject function returns an OLE Object handle to a specific OLE server or application.
Syntax/Parameters
Syntax
handle = OLEGetObject ( string type );
Parameters
type
A string specifying the GUID for the specific application or server. For ease of use this function also supports shorthand names. See the Remarks section for more details.
Return Value
Returns a handle to an instance serving the OLE requests or NULL_HANDLE on failure. Use the GetLastError function to retrieve a formatted error code.
Remarks
The type parameter is case-sensitive and must specify a CLSID that is accessible to the current computer. For ease of use the following shorter type names are available:
Text | Description | |||
Internet Explorer | Microsoft Internet Explorer. An instance of Internet Explorer is opened as the current user. This Internet Explorer window is hidden by default. |
Because of the complexity of many COM objects, Legato provides an easier to use interface for any of the short type values. Any COM object referenced by CLSID can only be accessed with the OLERunMethod function.
Objects returned by this function may persist after the handle is closed or the script has ended. How long the object persists is based on the CLSID and any properties changed by OLERunMethod or other OLE functions.
Upon completion the handle should be closed with the CloseHandle function. Depending on the state of the connected object, it may or may not close. Some groups, such as Internet Explorer, have additional close options such as OLEIEClose.
Related Functions
Platform Support
Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL
Legato IDE
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.