|
-
May 3rd, 2005, 07:03 PM
#1
Thread Starter
Hyperactive Member
multi select
how would you get the information for all of the selected items in a filelist box
for example
the user selects three items and you need to add all of their names them to a list box
It's not just Good, It's Good enough!
Spelling Eludes Me
-
May 3rd, 2005, 07:15 PM
#2
Re: multi select
Add a listbox, a filelist box, and a command button. Turn MultiSelect to 1-Simple and enjoy.
VB Code:
Option Explicit
Private Sub Command1_Click()
Dim f%
For f = 0 To File1.ListCount - 1
If File1.Selected(f) = True Then
List1.AddItem File1.List(f)
End If
Next f
End Sub
Last edited by dglienna; May 3rd, 2005 at 07:30 PM.
-
May 3rd, 2005, 07:15 PM
#3
Re: multi select
VB Code:
Dim i As Integer
For i = 0 To File1.ListCount - 1
If File1.Selected(i) = True Then
MsgBox File1.List(i)
End If
Next
Has someone helped you? Then you can Rate their helpful post. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|