|
-
Jun 13th, 2000, 08:36 AM
#1
Thread Starter
Member
Is there any way to have multiple file selection and have long filenames returned with the open dialog box?
-
Jun 13th, 2000, 08:46 AM
#2
Code:
CommonDialog1.Flags = cdlOFNAllowMultiselect + cdlOFNLongNames
-
Jun 13th, 2000, 09:15 AM
#3
Thread Starter
Member
this doesnt seem to be working for me, is it just me what could i be doing wrong
-
Jun 13th, 2000, 09:41 AM
#4
_______
Works for me as well....
Private Sub Form_Load()
'display the commondialog show open
On Error GoTo QuitNow:
CommonDialog1.InitDir = "C:\" 'set dir path
CommonDialog1.CancelError = True 'used in cancel code
CommonDialog1.Filter = "All files(*.*)|*.*" 'filter for all files
CommonDialog1.Flags = cdlOFNAllowMultiselect + cdlOFNLongNames
CommonDialog1.ShowOpen
'show files
QuitNow:
Exit Sub
End Sub
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 27th, 2000, 03:54 PM
#5
Member
Long Filenames and Multiselect
The problem with this is that the filenames are delimited by spaces. This makes it difficult to separate the filenames (it is likely that you will run into a filename with a space in it).
If someone has a solution to this problem please help me out. It has me stumped right now.
-
Sep 27th, 2000, 04:11 PM
#6
Lively Member
multi select file names separated by ;
YC Sim
Teenage Programmer
UIN 37903254
-
Oct 11th, 2000, 09:04 AM
#7
Member
OK, I figured it out.
I am using API on Windows NT. API (WinNT) delimits with vbNull. Like this: "path(vbNull)filename1(vbNull)filename2(vbNull)..."
I think the delimiter varies with OS.
I will have to test my program on Win9x to see if the delimiter is the same.
All the documentation I read said that the MultiSelect was delimited by spaces.
Thank you.
-
Oct 11th, 2000, 09:44 AM
#8
Lively Member
i think it is delimited by a ; semicolon..
YC Sim
Teenage Programmer
UIN 37903254
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
|