PASSPORT Knowledge Base
Object Interface

Date Published: August 15, 2008

Title

Cursor Not Visible

Product

PASSPORT PC to Host, PASSPORT Web to Host

Emulation Types

TN3270, TN5250, VT, SCO ANSI, Wyse 60

Issue

When using the PASSPORT Object Interface to navigate host screens my code appears to run OK, however, the cursor does not display on the PASSPORT screen after completing. How can I make the cursor appear?

Solution

This problem occurs because the PASSPORT window does not currently have the focus. Clicking the title bar at the top of the PASSPORT window will cause the cursor to display in it's current location. You may also use the Activate method of the Session object in your code to make this happen. Sample code:

 

Function Session_Activate()

 

Dim Sys, Sess

Dim i

 

Set Sys = CreateObject("PASSPORT.System")

' Assumes one or more open sessions

Set Sess = Sys.ActiveSession

For i=1 to Sys.Sessions.Count

Set Sess=Sys.Sessions.Item(i)

MsgBox "Activating session " + Sess.Name + "."

Sess.Activate

Next

 

End Function

More Information

Keywords

cursor, Object Interface, visible