OLE Automation

HostExplorer Programming

OLE Automation

3270 5250 VT

OLE Automation is a facility provided by Windows that lets you exchange data between applications. You can use OLE Automation to automate these tasks.

You can also use OLE Automation to access and control HostExplorer. You can write OLE Automation clients using a variety of tools, including Hummingbird Basic, Visual Basic, C++, and other languages.

The name of the Automation object is "HostExplorer."

The following example uses Visual Basic:

Dim HE as Object
Set HE = CreateObject( "HostExplorer" )

Now, use the language extensions as you would in the built-in macro editor:

HE.CurrentHost.Keys "Login JOHN@E"

If you need to add OLE objects to a project during development, add the hostex32.exe file as a reference. Visual Basic then adds the objects, properties, and methods to your project. You can view the objects using the Object Browser.

Some sample macros are provided in the EB directory located in the main HostExplorer program folder.


Related Topics

OLE Objects

Methods and Properties of the Application Object

Methods and Properties of the Field Object

Methods and Properties of the Host Object

Methods and Properties of the Hosts Object

Methods and Properties of the Cfg3270, Cfg5250, and CfgVT Objects