PASSPORT Knowledge Base
Macros

Date Published: August 15, 2008

Title

Using the Count Function in a Macro

Product

PASSPORT PC to Host, PASSPORT Web to Host

Emulation Types

TN3270, TN5250, VT, SCO ANSI, Wyse 60

Issue

How can I use the Count function in a macro to display the number of current PASSPORT sessions?

Solution

Below is a sample macro that will display a dialog box, which shows the number of PASSPORT sessions that are currently opened:

 

Sub ZMain()

 

nSessionCount = Count

 

strText = "Number of Sessions = " & nSessionCount

 

nRet = MsgBox (strText, 0, "Number of Sessions")

 

End Sub

More Information

Keywords

count, macro, number of sessions