PASSPORT Knowledge Base
Object Interface

Date Published: October 29, 2008

Title

Jump to a Specific Session from a Macro

Product

PASSPORT PC to Host, PASSPORT Web to Host

Emulation Types

TN3270, TN5250, VT, SCO ANSI, Wyse 60

Issue

I am using a macro to move data from one session to another.  I need to be able to switch to a specific session when there are more than two sessions opened in PASSPORT.  How can this be done?

Solution

There are host key values such as JumpA, JumpB, etc. that you can use with the SendKeys method to accomplish this.   Below is an example of a macro that will jump from session A to D:

 

Sub Main()

Dim Sys, Sess, MyScreen, MyArea

Set Sys = CreateObject("PASSPORT.System")

' Assumes an open session

Set Sess = Sys.ActiveSession

Set MyScreen = Sess.Screen

MsgBox "Press OK to jump to session D"

MyScreen.SendKeys "<JumpD>"

End Sub

More Information

Keywords

switch, specific, session, sessions, jump