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!

loop all my session and add in listbox 1

Status
Not open for further replies.

sal0003

Programmer
Apr 5, 2010
22
IT
I need to loop all my sessions and add the related name in a combobox only for the Extra screen session in position of screen 9,21 are the word: ENTER APPLICATION...

I hope i'm clear.

Naturally in vb 6.0 code.
Tkx.
 


hi,
I need to loop all my sessions
Code:
Public Sessions As Object
Public System As Object
Public Sess0 As Object
Public oSess as Object

'Extra Objects
    Set System = CreateObject("EXTRA.System")   ' Gets the system object
    If (System Is Nothing) Then MsgBox "Could not create the EXTRA System object.  Stopping macro playback.": Stop
    Set Sessions = System.Sessions
    If (Sessions Is Nothing) Then: MsgBox "Could not create the Sessions collection object.  Stopping macro playback.": Stop
    Set Sess0 = System.ActiveSession
    If (Sess0 Is Nothing) Then MsgBox "Could not create the Session object.  Stopping macro playback.": Stop
'[b][highlight]I need to loop all my sessions
  for each oSess in Sessions

  next
'[/highlight][/b]
Set Sessions = Nothing
Set System = Nothing
Set Sess0 = Nothing


Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top