Página 1 de 1
TFileOpenDlg:cFilePath
Publicado: Mié Mar 29, 2006 11:26 am
por Aguiar Costa
Hi !!!
I have a FileOpenDlg with the property lAllowMultiSelect set to True. After
calling Run() method i'm using cFilePath property to know the selected file
path....if i select multiple files that property returns the path correctly,
but if just one file is selected it returns the path and the file name !!!
Is this correct ?
TIA.
Aguiar !!!
TFileOpenDlg:cFilePath
Publicado: Mié Mar 29, 2006 11:59 am
por jfgimenez
Aguiar,
> I have a FileOpenDlg with the property lAllowMultiSelect set to True.
> After
> calling Run() method i'm using cFilePath property to know the selected
> file
> path....if i select multiple files that property returns the path
> correctly,
> but if just one file is selected it returns the path and the file name !!!
> Is this correct ?
No, it's a bug. Also there was another bug: unlike when lAllowMultiSelect is
..f., when selecting more than one file, cFilePath did not end with a
backslash. Now both bugs are fixed.
Please, add this .obj to your project.
Thanks for your feedback.
--
Regards,
Jose F. Gimenez
Attached files CommonDlg.zip (5.8 KB)Â
TFileOpenDlg:cFilePath
Publicado: Mié Mar 29, 2006 5:52 pm
por Aguiar Costa
Jose,
Thanks...the obj solved the problem.
Another problem...If lAllowMultiSelect is set to True it rases a GPF error
if you try to run the dialog more then one time...It works ok with
lAllowMultiSelect set to FALSE.
Regards
Aguiar !!!
"Jose F. Gimenez" <
jfgimenez@wanadoo.es> escreveu na mensagem
news:[email=
442a5a6c@ozsrvnegro.ozlan.local...]
442a5a6c@ozsrvnegro.ozlan.local...[/email]
> Aguiar,
>
>> I have a FileOpenDlg with the property lAllowMultiSelect set to True.
>> After
>> calling Run() method i'm using cFilePath property to know the selected
>> file
>> path....if i select multiple files that property returns the path
>> correctly,
>> but if just one file is selected it returns the path and the file name
>> !!!
>> Is this correct ?
>
> No, it's a bug. Also there was another bug: unlike when lAllowMultiSelect
> is .f., when selecting more than one file, cFilePath did not end with a
> backslash. Now both bugs are fixed.
>
> Please, add this .obj to your project.
>
> Thanks for your feedback.
>
> --
> Regards,
>
> Jose F. Gimenez
>
>