PASSPORT Knowledge Base
Object Interface

Date Published: January 19, 2005
Date Updated: March 13, 2008

Title

Starting a Session from an External Application

Product

PASSPORT PC to Host, PASSPORT Web to Host

Emulation Types

TN3270, TN5250, VT, SCO ANSI, Wyse 60

Issue

Programmers may have a need to start a PASSPORT session from an external application.

Solution

Beginning in version 2002 of PASSPORT, the terminal emulation contains a new object layer (PASSOBJ.DLL) that allows programmers to create a COM object that may be used to start a specific PASSPORT session.

Example

Below is sample Visual Basic code that opens a specific PASSPORT session:

 

Sub Main()

    Dim Sessions As Object

    Dim System As Object

    Set objPassport = CreateObject("PASSPORT.System")

    objPassport.Sessions.Open ("C:\Program Files\PASSPORT\PASSPORT.ZWS")

End Sub

More Information

Keywords

api, object, screen, application, integration, automation, start, session