The code provided by George Tasker in another thread should work. Can you post a sample of how did you use it?
The string returned in CommonDialogObject.Filename has the following format:
DirectoryName+chr(0)+FirstFilename+chr(0)+FilenameN+chr(0)+Lastfilename
So it doesn't matter that they have spaces, the delimiter character is chr(0).
For a more specific help, please post a sample of your code (where you access CommDlg.Filename and do the parsing).
>Hi everyone,
>
>I found a problem, that I can't find an answer right now. I use DynaZip for archiving from VFP (as was suggested from this forum), and I also use MS Common Dialog Control for obtaining a list of files, which should be archieved. Unfortunately, they use different format for ItemList. So, after obtaining a list of files with MS Common Dlg, I parse the string into an array, using space(1) as a delimiter. This causes a problem if I try, for example, My Documents directory, which contains space itself.
>
>What could be solution here?
Just an opinion... Not a fact.