|
-
Nov 28th, 2001, 08:33 AM
#1
Thread Starter
New Member
Selecting Multiple Files
Does anyone know how to create a Dialog box that will allow me to select multiple files, rather than just one? Right now I have it set up to where the user can enter the filenames manually, but I would rather be able to just select all the files at once from just one dialog box.
-
Nov 28th, 2001, 08:39 AM
#2
-= B u g S l a y e r =-
VB Code:
Private Sub Command1_Click()
Dim sArr() As String
Dim i As Integer
CommonDialog1.Flags = cdlOFNAllowMultiselect + cdlOFNExplorer
CommonDialog1.ShowOpen
sArr = Split(CommonDialog1.FileName, Chr(0))
For i = 0 To UBound(sArr())
Debug.Print sArr(i)
Next i
End Sub
-
Nov 28th, 2001, 10:00 AM
#3
Thread Starter
New Member
-
Mar 6th, 2002, 09:28 AM
#4
Junior Member
Thanks for the tip, but when I select all the files in the folder it returns nothing. It works if I only select a few of the files but not all. And I am not talking about hundreds of files, I am just doing a test of about 20 or so files.
Got any ideas??
-Jb Freels
Data Processing Sup.
Layton Graphics, Inc.
The nice thing about standards is that
there are so many to choose from.
-
Mar 6th, 2002, 09:40 AM
#5
Bouncy Member
the CommonDialog control also has a MaxFileSize Property, it limits to maximum number of filenames it can return...you may have to fiddle with that
-
Mar 6th, 2002, 09:51 AM
#6
Junior Member
That be it, thanks man!
Originally posted by darre1
the CommonDialog control also has a MaxFileSize Property, it limits to maximum number of filenames it can return...you may have to fiddle with that
-Jb Freels
Data Processing Sup.
Layton Graphics, Inc.
The nice thing about standards is that
there are so many to choose from.
-
Mar 6th, 2002, 10:58 AM
#7
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
|