obfuscate
Programmer
- Feb 8, 2010
- 29
I am having some problems allowing the user to specify which session they would like to use when running a macro.
Users on our system can open two Attachmate windows, one named WGS.edp and the other named WGSSession.edp. These
names are constant in our system, regardless of the desktop the application is being run on.
When you first sign on to a session on our system, you can enter either TPXC or TPXW. If you have a session open, and are logged in to it using TPXC, you MUST log in to the other session using TPXW. What I would like to do is set it so a value of TPXC (gotten from input via tpxTextBox.text and assigned to the variable TPX) always uses the "WGS" session and a value of TPXW to always use the "WGSSession" session.
i format my object the standard way via Sess0 = System.ActiveSession
i tried using some 'if' logic to assign a session based on the value of TPX
but im thinking now it might just be
or
any help would be greatly appreciated
thanks
-obfuscate
Users on our system can open two Attachmate windows, one named WGS.edp and the other named WGSSession.edp. These
names are constant in our system, regardless of the desktop the application is being run on.
When you first sign on to a session on our system, you can enter either TPXC or TPXW. If you have a session open, and are logged in to it using TPXC, you MUST log in to the other session using TPXW. What I would like to do is set it so a value of TPXC (gotten from input via tpxTextBox.text and assigned to the variable TPX) always uses the "WGS" session and a value of TPXW to always use the "WGSSession" session.
i format my object the standard way via Sess0 = System.ActiveSession
i tried using some 'if' logic to assign a session based on the value of TPX
Code:
If TPX = "TPXC" then
Sess0 = System.ActiveSession.WGS
Else
Sess0 = System.ActiveSession.WGSSession
end if
Code:
Sess0 = System.Session.WGS
Code:
sess0 = System.Session.WGSSession
any help would be greatly appreciated
thanks
-obfuscate