Obtaining access to COM objects
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Obtaining access to COM objects
To access a COM object, you have to define a component handle for it and set the handle value using the appropriate object instantiation. For example:
|
To instantiate an Automation object, you use the CREATE Automation
Object statement. For more information, on instantiating Automation
objects, see ActiveX Automation Support.
To instantiate an ActiveX control, you use the AppBuilder at
design time to select and configure the control, and to generate
ABL that instantiates the control at runtime. This AppBuilder-generated
ABL includes the CREATE Widget statement to create
the control-frame widget and the LoadControls() method
to associate the control instance with the control-frame COM object.
For more information on instantiating ActiveX controls, see ActiveX Control Support.
Access to COM object properties and methods is the same for both Automation objects and ActiveX controls. ABL supports event management for both Automation objects and ActiveX controls. For information on ActiveX Automation object event management, see ActiveX Automation Support. For information on ActiveX control event management, see ActiveX Control Support.