|
-
Jun 12th, 2004, 01:46 PM
#1
Thread Starter
PowerPoster
FileListBox MultiSelect [RESOLVED]
I'm having a problem with the FileListBox.Selected property. I have searched on here but nothing comes to light.
Set File1.MultiSelect = 2 (extended). But how can I obtain each file name that I choose (multi select)? Let say I choose/highlighted 3 files from the file list box. I want them to be display on msgbox, but how??
It only displays the last file selected in the msgbox. What am I missing.
VB Code:
Private Sub cmdDisplay_Click()
Dim count As Integer
Dim N As Integer
count = File1.ListCount
For N = 0 To count - 1
If File1.Selected(N) = True Then
MsgBox File1.FileName
End If
Next
End Sub
Thanks.
Last edited by Keithuk; Jun 12th, 2004 at 02:01 PM.
-
Jun 12th, 2004, 01:58 PM
#2
Banned
Private Sub cmdDisplay_Click()
Dim count As Integer
Dim N As Integer
count = File1.ListCount
For N = 0 To count - 1
If File1.Selected(N) = True Then
MsgBox File1.List(N)
End If
Next
End Sub
-
Jun 12th, 2004, 02:01 PM
#3
Thread Starter
PowerPoster
Thanks nareth. I thought I was missing something.
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
|