Sub NavigateWithSendControlKeySyncMethod()
'Declare application, terminal, and view object variables:
Dim terminal As Attachmate_Reflection_Objects_Emulation_IbmHosts.IbmTerminal
Dim screen As Attachmate_Reflection_Objects_Emulation_IbmHosts.IbmScreen
Set terminal = ThisIbmTerminal
'Get a handle to the Screen object and navigate to the screen we
'want to enter the data on
Set screen = terminal.screen
'Set the screen settle time
screen.ScreenSettleTime = 2000
'Navigate to the screen
rcode = screen.SendControlKeySync(ControlKeyCode_Transmit)
'Go to a screen and get some data
rcode = screen.SendKeys("kayak")
rcode = screen.SendControlKeySync(ControlKeyCode_Transmit)
text = screen.GetText(13, 66, 6)
'Go back and navigate to another screen
rcode = screen.SendControlKeySync(ControlKeyCode_F3)
'Navigate to a screen and put the data into a field
rcode = screen.SendKeys("ispf")
rcode = screen.SendControlKeySync(ControlKeyCode_Transmit)
rcode = screen.SendKeys("2")
rcode = screen.SendControlKeySync(ControlKeyCode_Transmit)
rcode = screen.PutText2(text, 5, 18)
End Sub