CornMaster
02-05-2005, 06:25 AM
Is this possible....using the Shift or control key? Or do I need a different control...and if so..which one.
Thanks. :)
Thanks. :)
Common Dialog TroublesCornMaster 02-05-2005, 06:25 AM Is this possible....using the Shift or control key? Or do I need a different control...and if so..which one. Thanks. :) CornMaster 02-05-2005, 08:41 AM I know this is an old thread...but I was looking for the same answer... I can select files...but when it returns with the path....it leaves off the file names. All I get is the folder path. OnErr0r 02-05-2005, 09:05 AM You'll need to use the cdlOFNAllowMultiselect flag to allow for multiple files to be selected. OnErr0r 02-05-2005, 10:25 AM I know this is an old thread...but I was looking for the same answer... I can select files...but when it returns with the path....it leaves off the file names. All I get is the folder path. The return will contain the filenames selected delimited by vbNullChars. The first item will contain the entire path for the files. Parse on vbNullChar with the Split function. CornMaster 02-05-2005, 11:13 AM Here is my code for trying to read the filenames. Dim temparray() As String, ttext As String temparray() = Split(cdpath.filename, vbNullChars) ttext = "Path = " & temparray(0) & vbCrLf MsgBox UBound(temparray()) For i = 1 To UBound(temparray()) ttext = ttext & temparray(i) & vbCrLf Next i txtpath = ttext 'cdpath.filename MsgBox ttext but the array only has one item...the path...and the ubound is returned as 0. Am I missing something? OnErr0r 02-05-2005, 02:44 PM It is vbNullChar, singular. Also, what flags are you using exactly? CornMaster 02-05-2005, 08:13 PM cdpath.flags = cdlOFNAllowMultiselect Or cdlOFNExplorer It's working now...it was the s Thanks a bunch. :) |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum