Wayne,
The code you wrote me would not work, because Dir name looks like c:\My Documents without \ at the end.
Hopefully, George's code would work, I'll check tomorrow.
>>
>>I wrote in my previous message about the problem, I found, using MS Common Dlg. For multiple selection it returns string like:
>>DirName File1 File2...
>>So, for obtaining only list of files I parse the string and start from the second element. However, if a directory name contains a space within it, this technique doesn' work.
>>
>>Help me, please.
>
>Does the directory name contain a \ ? If so, you could use this as a starting place...
>
>x= "c:\program files\ file1.xxx file2.xxx"
>
>filedir = SUBSTR(x,1,RAT('\',x))
>filelist = SUBSTR(x,filedir,'')
>
>I didn't test this, but you should get the gist...
>
>HTH
If it's not broken, fix it until it is.
My Blog