Integrating Access & Reflection (VT)

drdespair

New member
Local time
Today, 08:28
Joined
May 17, 2014
Messages
3
Hi all,

Just wondering if anyone has any experiance with VBA integration of Reflection virtual terminal task into Access?

I am able to get Access to create new sessions in Reflection and send all the needed commands, but I am trying to figure out how to use an already open session of Reflection and only connect to it when I need to do some sort of manipulation. This is what my code currently look like, so it able to use an already open instance of reflection but I cant seem to make it use an open session, each time it runs it creates a new one, I suspect it has something to do with the CreateControl/CreateView, maybe I should be using something thats not creating but using GetXXXXX:
Code:
Dim ApplicationObject As Attachmate_Reflection_Objects_Framework.ApplicationObject
Dim terminal As Attachmate_Reflection_Objects_Emulation_IbmHosts.IbmTerminal
Dim frame As Attachmate_Reflection_Objects.frame
Dim view As Attachmate_Reflection_Objects.view
Dim screen As Attachmate_Reflection_Objects_Emulation_IbmHosts.IbmScreen
Dim coordinates As ScreenPoint
 
Set ApplicationObject = GetObject("Reflection Workspace")
Set frame = ApplicationObject.GetObject("Frame")
Set terminal = ApplicationObject.CreateControl("H:\Sessions\HGEN13.rd5x")
Set view = frame.CreateView(terminal)
Set screen = terminal.screen

Thanks!

DrD
 

Users who are viewing this thread

Back
Top Bottom