PASSPORT Knowledge Base
Programming

Date Published: October 31, 2007
Date Updated: March 13, 2008

Title

Attachmate API Compatibility

Product

PASSPORT PC to Host, PASSPORT Web to Host

Emulation Types

TN3270, TN5250, VT, SCO ANSI, Wyse 60

Issue

Does PASSPORT provide an API that is compatible with the object oriented Attachmate EXTRA!® OLE automation support API?

Solution

Yes, PASSPORT provides an object oriented API that is compatible with the object oriented Attachmate EXTRA!® OLE automation support API. This interface exposes terminal emulation objects such as the entire group of sessions, a single session, screen, keypad, etc.

 

This API can be used by C++, Visual Basic, VBScript, JavaScript and other applications that need to access host data and/or control multiple host sessions. This API is also used when running Attachmate EXTRA!® macros that have been converted to run as PASSPORT macros.

 

The PASSOBJ.DLL file provides this API interface. This DLL is registered with Windows when the PASSPORT ActiveX component is downloaded.

 

There is one change that needs to be made to your API application. The parameter for the CreateObject statement must be changed from "EXTRA.System" to "PASSPORT.System". This statement is usually the first statement that references the API.

 

An example for Attachmate EXTRA!® :

 

SET oSystem = CreateObject("EXTRA.System")

 

An example for PASSPORT:

 

SET oSystem = CreateObject("PASSPORT.System")

More Information

Keywords

integration, macro, object, api, automation