In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

TFileOpenDlg:cFilePath

Foro público de Xailer en español
Responder
Aguiar Costa
Mensajes: 115
Registrado: Jue Jun 01, 2006 7:21 pm

TFileOpenDlg:cFilePath

Mensaje 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 !!!
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

TFileOpenDlg:cFilePath

Mensaje 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)Â
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Aguiar Costa
Mensajes: 115
Registrado: Jue Jun 01, 2006 7:21 pm

TFileOpenDlg:cFilePath

Mensaje 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
>
>
Responder