PASSPORT Knowledge Base
Macros

Date Published: August 15, 2008

Title

Exit Session Macro

Product

PASSPORT PC to Host, PASSPORT Web to Host

Emulation Types

TN3270, TN5250, VT, SCO ANSI, Wyse 60

Issue

How can the ExitSession function be used in a macro to close the PASSPORT window?

Solution

Below is a sample macro that will display a dialog box then close the PASSPORT window when the OK button is pressed:

 

Sub ZMain()

 

TitleString="PASSPORT Macro"

 

MsgBox "Press OK to close the PASSPORT window.",0,TitleString

 

ExitSession()

 

End Sub

 

More Information

Keywords

macro, close, exit, ExitSession