View Single Post
Old 02-14-2006, 11:41 AM   #1 (permalink)
rikb53
Registered User
 
Join Date: Jan 2006
Posts: 29
rikb53 is on a distinguished road
loop thru listbox

guys ive got a simple question that alludes me for right now.

if i iterate thru the elements of a list box like below::::
txtTo is the listbox.


Dim myEmailToList As String
Dim i As Integer
For i = 0 To txtTo.Items.Count - 1
myEmailToList += txtTo.Items.IndexOf(i)
Next

i know this is simple - i've never had to loop thru a listbox before.
thanks for any help on this
rik
rikb53 is offline   Reply With Quote