|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Hi,
I give the user a multi select ListBox, and would want to go over the selected rows by him, one by one, and obtain the selected text. Can anyone help? Thanks. |
|
#2
|
||||
|
||||
|
Code:
Private Sub cmdOne_Click()
Dim SelectedItems As String
For i = 0 To lstOne.ListCount - 1
If lstOne.Selected(i) = True Then
MsgBox "Item number " & i & " is selected"
End If
Next
End Sub
Private Sub Form_Load()
Dim i As Integer
For i = 1 To 10
lstOne.AddItem (CStr(i))
Next
End Sub
|
|
#3
|
|||
|
|||
|
works great!
![]() |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Multi selection List Box |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|