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

Looping through Listbox

Status
Not open for further replies.

Jacquesvdz

Programmer
Jul 2, 2003
9
ZA
Hi all.
Want to know how to loop through listbox with url's in it.
What happens.On command click It must take the url pass it through to a method.The method uses the url to retrieve information.When it is finished with the url it must take the next one and pass it again to the method and so on till the last url in the listbox
Thanx very much guys

 
Thanks guys
Sorted it out.
For the guys that don't know it
Here it is

' For ALL List items.
Dim lngIndex As Long

For lngIndex = 0 To List1.ListCount - 1
Call <methodname> List1.List(lngIndex)
Next lngIndex


' For only selected List items.
Dim lngIndex As Long

For lngIndex = 0 To List1.ListCount - 1
If List1.Selected(lngIndex) Then
Call <methodname> List1.List(lngIndex)
End If
Next lngIndex
 
Dim x as Integer

For x = 0 To lstURL.ListCount - 1
lstURL.List(x) ' Access the list box elements
Next

Swi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top