Can you pass a file pattern to cGetFile()

Can you pass a file pattern to cGetFile()

Postby xProgrammer » Tue Mar 04, 2008 10:51 am

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  Expand view
sChosenFile := cGetFile( " *.dbf"  )


Is this possible?

Thanks
Doug
(xProgrammer)
User avatar
xProgrammer
 
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

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

Postby Enrico Maria Giordano » Tue Mar 04, 2008 4:25 pm

Try this:

Code: Select all  Expand view
cDbf = CGETFILE( "File DBF (*.DBF)|*.DBF", "Apri tabella...", , CURDRIVE() + ":\" + CURDIR() )


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby xProgrammer » Wed Mar 05, 2008 11:05 am

Thanks for the suggestion but it didn't work. Remember we are talking Linux here.

Regards
Doug
(xProgrammer)
User avatar
xProgrammer
 
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Postby Enrico Maria Giordano » Wed Mar 05, 2008 1:13 pm

Ops! Sorry.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveLinux / FiveDroid (Android)

Who is online

Users browsing this forum: No registered users and 10 guests