PDA

Click to See Complete Forum and Search --> : Another Listbox Question


Smie
Jan 11th, 2000, 07:47 AM
Thanks for the previous help, Now, how would i reverse that and send all the list to a textbox separated by ";" i tried:

text1.text = List1.listindex & ";"

but that wasnt it, I need to send All of the list, just not one part. Thanks

MartinLiss
Jan 11th, 2000, 08:28 AM
Dim intIndex As Integer

For intIndex = 0 To List1.ListCount - 1
If List1.Selected(intIndex) Then
Text1.Text = Text1.Text & List1.List(intIndex) & ";"
End If
Next intIndex

Text1.Text = Left(Text1, Len(Text1.Text) - 1)


------------------
Marty

Smie
Jan 11th, 2000, 10:14 AM
That did not work, sorry. Any clue how to fix it, and get it to send ALL the info, not just the selected? thanks!

kmchong
Jan 11th, 2000, 12:57 PM
Just remove the if statement will work!