Page 1 of 1

Can you pass a file pattern to cGetFile()

Posted: Tue Mar 04, 2008 10:51 am
by xProgrammer
Hi Antonio

I just started trying the cGetFile() function. Looks great but I would like to be able to pass it a filter, For example if I just wanted .dbf files I would like to be able to do something like

Code: Select all

sChosenFile := cGetFile( " *.dbf"  )
Is this possible?

Thanks
Doug
(xProgrammer)

Re: Can you pass a file pattern to cGetFile()

Posted: Tue Mar 04, 2008 4:25 pm
by Enrico Maria Giordano
Try this:

Code: Select all

cDbf = CGETFILE( "File DBF (*.DBF)|*.DBF", "Apri tabella...", , CURDRIVE() + ":\" + CURDIR() )
EMG

Posted: Wed Mar 05, 2008 11:05 am
by xProgrammer
Thanks for the suggestion but it didn't work. Remember we are talking Linux here.

Regards
Doug
(xProgrammer)

Posted: Wed Mar 05, 2008 1:13 pm
by Enrico Maria Giordano
Ops! Sorry.

EMG