Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SET PARTICULAR SESSION

Status
Not open for further replies.

2009luca

Programmer
Jul 27, 2013
222
IT
instaed Set Sess0 = System.ActiveSession in possible to Set Sess0 MYSESS0_2.edp?
How to via vb6? tks
 
Hey 2009luca, this is how I do it. There may be better ways, but this is how I know to do it. Here is the full code, you may not need it all, but I don't want to leave anything out.

' Get the necessary Session Object
Dim Sess0 As Object
SessName0$ = "MYSESS0_2.edp"

Set Sess0 = Sessions.Item(SessName0$)
If Sess0 is Nothing Then
Err = MsgBox(SessName0 + " is not currently open. Open it?",1)
If 1 = Err Then
Err = 0
Set Sess0 = Sessions.Open(SessName0)
If Err Then
MsgBox("Failed to open " + SessName0 + ". Stopping playback")
Stop
End If
ElseIf 2 = Err Then
Stop
Else
MsgBox("Failed to open " + SessName0 + ". Stopping playback")
Stop
End If
End If
If Not Sess0.Visible Then Sess0.Visible = TRUE
Sess0.Screen.WaitHostQuiet(g_HostSettleTime)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top