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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to close active session?

Status
Not open for further replies.

tolearnattach

Programmer
Jul 15, 2011
1
US
when i am trying to close active session, it gives me a warning message asking if I really want to close session.

can someone tell me how to close the session without warning?

Set System = CreateObject("EXTRA.System")
Set Sess = System.ActiveSession
msgbox System.Sessions.Count
For i=1 to System.Sessions.Count
Set Sess=System.Sessions.Item(i)
msgbox Sess.Name
If Not ( Sess.Name = "abc") Then
Sess.Close
End If
Next

I want to close only one out of open active sessions, but it is throwing a warning message with "ok" and "Cancel" buttons. how to handle it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top